Download Jar. Libraryless. Click here for Pure Java version (6700L/48K).
1 | !7 |
2 | |
3 | p-exp { |
4 | for (S s : tlft([[ |
5 | if (bla) blabla(); more; |
6 | if (bla) { block! } more; |
7 | if (bla) for (a; b; c) { block! } more; // will fail |
8 | if something else |
9 | ]])) { |
10 | L<S> tok = javaTok(s); |
11 | T3<LS, LS, Int> t = tok_parseIfStatement(tok); |
12 | printStruct(t); |
13 | if (t != null) printStruct(subList(tok, t.c)); |
14 | } |
15 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017566 |
Snippet name: | Test tok_parseIfStatement (OK except for the tricky case) |
Eternal ID of this version: | #1017566/6 |
Text MD5: | 92684ccdd09fa4b122403878532414a6 |
Transpilation MD5: | 9a889f6aebde381330198b471646872a |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-27 14:28:46 |
Source code size: | 348 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 526 / 1267 |
Version history: | 5 change(s) |
Referenced in: | [show references] |