1 | static L<S> tok_joinMinusIdentifiers(L<S> tok) { |
2 | for (int i = 1; i+4 < l(tok); i += 2) |
3 | if (isMinusIdentifier(get(tok, i)) && eq(get(tok, i+2), "-") && isIdentifier(get(tok, i+4))) { |
4 | replaceSublist(tok, i, i+5, ll(join(subList(tok, i, i+5)))); |
5 | i -= 2; |
6 | } |
7 | ret tok; |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008445 |
Snippet name: | tok_joinMinusIdentifiers |
Eternal ID of this version: | #1008445/4 |
Text MD5: | 96a7825710c8203d1c8a7f68082c6f13 |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-15 19:17:04 |
Source code size: | 294 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 351 / 401 |
Version history: | 3 change(s) |
Referenced in: | [show references] |