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

8
LINES

< > BotCompany Repo | #1020891 // canJavaInterpret - check recursively

JavaX fragment (include)

1  
sbool canJavaInterpret(S code) {
2  
  if (canQuickEval(code)) true;
3  
  Pair<S, L<S>> p = tok_parseFunctionCall(code);
4  
  if (p == null) false;
5  
  for (S arg : p.b)
6  
    if (!canJavaInterpret(arg)) false;
7  
  true;
8  
}

Author comment

Began life as a copy of #1017575

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020891
Snippet name: canJavaInterpret - check recursively
Eternal ID of this version: #1020891/5
Text MD5: e77df3c0f770eabab49659770c72407e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-08 15:34:37
Source code size: 213 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 259 / 304
Version history: 4 change(s)
Referenced in: [show references]