static LL<S> tok_splitJavaStatements(L<S> tok) { int i = 1; new LL<S> out; while (i < l(tok)) { int j = tok_findEndOfStatement(tok, i); out.add(subList(tok, i-1, j+1)); i = max(j+1, i+2); } ret out; }
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: | 409 / 434 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |