| 1 | static boolean nlIsMultipleStatements(S text) {
 | 
| 2 | L<S> tok = codeTokens(snlTok(text)); | 
| 3 | //ret eq(first(tok), "[") && eq(last(tok), "]"); | 
| 4 | |
| 5 | if (!(eq(first(tok), "[") && eq(last(tok), "]"))) | 
| 6 | ret false; | 
| 7 | |
| 8 | new L<S> warnings1; | 
| 9 | new L<S> warnings2; | 
| 10 | Lisp parse1 = nlParse(tok, true, false, warnings1); | 
| 11 | Lisp parse2 = nlParse(subList(tok, 1, l(tok)-1), true, false, warnings2); | 
| 12 | //ret !eq(parse1, parse2); | 
| 13 | ret l(warnings2) > l(warnings1); | 
| 14 | |
| 15 | //ret isJuxta(tree) && snlSplitOps(tree) == null; | 
| 16 | } | 
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: | #1002856 | 
| Snippet name: | nlIsMultipleStatements | 
| Eternal ID of this version: | #1002856/1 | 
| Text MD5: | 67fc1289e2a94ba5b875e7004356b8e9 | 
| Author: | stefan | 
| Category: | eleu / nl | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2016-10-19 02:01:52 | 
| Source code size: | 522 bytes / 16 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 991 / 1088 | 
| Referenced in: | [show references] |