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

15
LINES

< > BotCompany Repo | #1002863 // Eval Test Bot (dev.)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (1631L/10K/34K).

!759

answer {
  if (!attn()) ret null;
  
  s = s.trim();
  if (s.startsWith("eval ")) exceptionToUser {
    s = dropPrefix("eval ", s);
    Lisp l = nlParse(s);
    new EvalTransform e;
    Lisp t = e.evalTransformRule(l);
    if (e.exception != null) printStackTrace(e.exception);
    ret nlUnparse(t) + (e.exception == null ? "" : "\n" + e.exception);
  }
}

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: #1002863
Snippet name: Eval Test Bot (dev.)
Eternal ID of this version: #1002863/1
Text MD5: f4c4d763815a38f0ce97ab55df86b97f
Transpilation MD5: d8420e7d7fb9961b39b53b2c5a68a85a
Author: stefan
Category: eleu / nl / prolog
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-03-10 02:33:18
Source code size: 377 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 521 / 669
Referenced in: [show references]