Libraryless. Click here for Pure Java version (1631L/10K/34K).
1 | !759 |
2 | |
3 | answer { |
4 | if (!attn()) ret null; |
5 | |
6 | s = s.trim(); |
7 | if (s.startsWith("eval ")) exceptionToUser { |
8 | s = dropPrefix("eval ", s); |
9 | Lisp l = nlParse(s); |
10 | new EvalTransform e; |
11 | Lisp t = e.evalTransformRule(l); |
12 | if (e.exception != null) printStackTrace(e.exception); |
13 | ret nlUnparse(t) + (e.exception == null ? "" : "\n" + e.exception); |
14 | } |
15 | } |
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: | 638 / 801 |
Referenced in: | [show references] |