Libraryless. Click here for Pure Java version (1770L/11K/26K).
// A JavaX extension for multi-line strings, modelled after Lua [[ ]] quotes. Fixed for not mangling string constants. !636 !standard functions !include #1000353 // class JavaTok public class main { public static void main(String[] args) throws Exception { String s = loadMainJava(); List<String> tok = JavaTok.split(s); for (int i = 1; i < tok.size(); i += 2) if (tok.get(i).startsWith("[[")) tok.set(i, quote(unquote(tok.get(i)))); s = JavaTok.join(tok); saveMainJava(s); } }
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: | 701 / 13884 |
Referenced in: | [show references] |