1 | static LL<S> tok_splitJavaStatements(L<S> tok) { |
2 | int i = 1; |
3 | new LL<S> out; |
4 | while (i < l(tok)) { |
5 | int j = tok_findEndOfStatement(tok, i); |
6 | out.add(subList(tok, i-1, j+1)); |
7 | i = max(j+1, i+2); |
8 | } |
9 | ret out; |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1012534 |
Snippet name: | tok_splitJavaStatements |
Eternal ID of this version: | #1012534/3 |
Text MD5: | dad738334cf776906d1fe570b02be1b4 |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-03-30 14:59:59 |
Source code size: | 231 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 410 / 436 |
Version history: | 2 change(s) |
Referenced in: | [show references] |