1 | sS tok_dropCurlyBrackets(S s) { |
2 | ret join(tok_dropCurlyBrackets(javaTok(s))); |
3 | } |
4 | |
5 | static LS tok_dropCurlyBrackets(LS tok) { |
6 | for (int i = 1; i < l(tok); i+= 2) { |
7 | while (eqGetOneOf(tok, i, "{", "}")) { |
8 | tokAppend(tok, i-1, tok.get(i+1)); |
9 | removeSubList(tok, i, i+2); |
10 | } |
11 | } |
12 | ret tok; |
13 | } |
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: | 385 / 443 |
Version history: | 2 change(s) |
Referenced in: | [show references] |