Libraryless. Click here for Pure Java version (1770L/11K/26K).
1 | // A JavaX extension for multi-line strings, modelled after Lua [[ ]] quotes. Fixed for not mangling string constants. |
2 | |
3 | !636 |
4 | !standard functions |
5 | |
6 | !include #1000353 // class JavaTok |
7 | |
8 | public class main { |
9 | public static void main(String[] args) throws Exception { |
10 | String s = loadMainJava(); |
11 | List<String> tok = JavaTok.split(s); |
12 | |
13 | for (int i = 1; i < tok.size(); i += 2) |
14 | if (tok.get(i).startsWith("[[")) |
15 | tok.set(i, quote(unquote(tok.get(i)))); |
16 | |
17 | s = JavaTok.join(tok); |
18 | saveMainJava(s); |
19 | } |
20 | } |
Began life as a copy of #605
download show line numbers debug dex old transpilations
Travelled to 21 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, dhtvkmknsjym, gwrvuhgaqvyk, hxnwyiuffukg, ishqpsrjomds, jlatgrcjtklg, jtubtzbbkimh, liwcxgsjrgqn, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #699 |
Snippet name: | JavaX multi-line-strings, improved (JavaX translator, current) |
Eternal ID of this version: | #699/1 |
Text MD5: | 46a95e921cff505a4ff0cad277ecc6c6 |
Transpilation MD5: | 2b341802ced80935ded26517048fed7b |
Author: | stefan |
Category: | |
Type: | JavaX translator |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-09-04 21:49:31 |
Source code size: | 547 bytes / 20 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 702 / 13887 |
Referenced in: | [show references] |