sS tok_dropCurlyBrackets(S s) { ret join(tok_dropCurlyBrackets(javaTok(s))); } static LS tok_dropCurlyBrackets(LS tok) { for (int i = 1; i < l(tok); i+= 2) { while (eqGetOneOf(tok, i, "{", "}")) { tokAppend(tok, i-1, tok.get(i+1)); removeSubList(tok, i, i+2); } } ret tok; }
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020926 |
Snippet name: | tok_dropCurlyBrackets |
Eternal ID of this version: | #1020926/3 |
Text MD5: | d79c0b49f764b94bbdb38a2db3796467 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-01-10 17:52:14 |
Source code size: | 315 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 384 / 442 |
Version history: | 2 change(s) |
Referenced in: | [show references] |