1 | sS tok_dropStuffInRoundBrackets(S s) {
|
2 | LS tok = javaTokWithBrackets(s); |
3 | tok_dropStuffInRoundBrackets(tok); |
4 | ret join(simpleSpaces2(tok)); |
5 | } |
6 | |
7 | static LS tok_dropStuffInRoundBrackets(LS tok) {
|
8 | for (int i = 1; i < l(tok); i += 2) |
9 | if (isRoundBracketed(tok.get(i))) |
10 | removeToken(tok, (i -= 2) + 2); |
11 | ret tok; |
12 | } |
Began life as a copy of #1014085
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1021379 |
| Snippet name: | tok_dropStuffInRoundBrackets - also simplifies spaces |
| Eternal ID of this version: | #1021379/6 |
| Text MD5: | a3da578179a6f5a469c2d42345fc87f3 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-02-17 19:16:48 |
| Source code size: | 332 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 568 / 623 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |