Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

16
LINES

< > BotCompany Repo | #1002856 // nlIsMultipleStatements

JavaX fragment (include)

static boolean nlIsMultipleStatements(S text) {
  L<S> tok = codeTokens(snlTok(text));
  //ret eq(first(tok), "[") && eq(last(tok), "]");
  
  if (!(eq(first(tok), "[") && eq(last(tok), "]")))
    ret false;
    
  new L<S> warnings1;
  new L<S> warnings2;
  Lisp parse1 = nlParse(tok, true, false, warnings1);
  Lisp parse2 = nlParse(subList(tok, 1, l(tok)-1), true, false, warnings2);
  //ret !eq(parse1, parse2);
  ret l(warnings2) > l(warnings1);
  
  //ret isJuxta(tree) && snlSplitOps(tree) == null;
}

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: 745 / 823
Referenced in: [show references]