static S tok_bracketsToQuoted(S s) { L<S> tok = javaTok(s); new L<S> t; Map<Int, Int> map = getBracketMap(tok); for (int i = 0; i < l(tok); i++) { Int dest = map.get(i); if (dest != null) { t.add(quote(join(subList(tok, i+2, dest-1)))); i = dest; } else t.add(tok.get(i)); } ret join(t); }
Began life as a copy of #1003150
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008282 |
Snippet name: | tok_bracketsToQuoted |
Eternal ID of this version: | #1008282/3 |
Text MD5: | 67494eb14834cf173b4357ad64010392 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-06 16:36:17 |
Source code size: | 344 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 505 / 509 |
Version history: | 2 change(s) |
Referenced in: | [show references] |