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

8
LINES

< > BotCompany Repo | #1017575 // javaEvalOrInterpret - try to interpret code if possible; use callAndMake

JavaX fragment (include)

1  
static O javaEvalOrInterpret(S code) {
2  
  if (!canJavaInterpret(code)) ret javaEval(code);
3  
  if (canQuickEval(code)) ret quickEval(code);
4  
  Pair<S, L<S>> p = tok_parseFunctionCall(code);
5  
  if (p != null)
6  
    ret callAndMake(p.a, toObjectArray(map javaEvalOrInterpret(p.b)));
7  
  ret javaEval(code);
8  
}

Author comment

Began life as a copy of #1015630

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: #1017575
Snippet name: javaEvalOrInterpret - try to interpret code if possible; use callAndMake
Eternal ID of this version: #1017575/3
Text MD5: f970f53375451baaee2cdb0ddf108820
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-15 17:38:23
Source code size: 304 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 382 / 433
Version history: 2 change(s)
Referenced in: [show references]