Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

21
LINES

< > BotCompany Repo | #1000373 // JavaX multi-line-strings (JavaX translator, fixed)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Compilation Failed (493L/4K).

1  
!636
2  
!standard functions
3  
!quicknew
4  
!class JavaTok
5  
6  
// A JavaX extension for multi-line strings, modelled after Lua [[ ]] quotes. Improved version using JavaTok.
7  
8  
public class main {
9  
  public static void main(String[] args) throws Exception {
10  
    String s = loadMainJava();
11  
    
12  
    List<String> tok = JavaTok.split(s);
13  
    
14  
    for (int i = 1; i < tok.size(); i += 2)
15  
      if (tok.get(i).startsWith("[["))
16  
        tok.set(i, quote(unquote(tok.get(i))));
17  
    
18  
    s = JavaTok.join(tok);
19  
    saveMainJava(s);
20  
  }
21  
}

Author comment

Began life as a copy of #605

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt

Comments [hide]

ID Author/Program Comment Date
985 #1000604 (pitcher) 2015-08-20 15:28:24
984 #1000610 (pitcher) 2015-08-18 00:07:07

add comment

Snippet ID: #1000373
Snippet name: JavaX multi-line-strings (JavaX translator, fixed)
Eternal ID of this version: #1000373/1
Text MD5: ff9ee144df34e72a4bcc01337a2c7060
Transpilation MD5: e2adeccc734eeb68db8fb9620b73ebf8
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-07-30 23:01:25
Source code size: 533 bytes / 21 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 1122 / 1203
Referenced in: [show references]