Download Jar. Libraryless. Click here for Pure Java version (10245L/70K).
1 | !7 |
2 | |
3 | sS concepts = [[ |
4 | ["ypnmpoezxeomgaof", "isInteger", "the JavaX function"], |
5 | ["cukovmzoaabrjkad", "isQuoted", "the JavaX function"], |
6 | ["vejphbmbhldbwuiw", "plus", "the JavaX function"], |
7 | ["ijecnpcajbasqhgv", "bigint", "the JavaX function"], |
8 | ["ghwqkbpspivlalrb", "X is the JavaX standard function called Y."], |
9 | ["jcnbmtmfzktxhzyf", "X + Y"] |
10 | ["mssmzemxxztdpphw", "X evaluates through Y."], |
11 | ["yrxfddfomyzlqwri", "A leaf of type X evaluates through Y."], |
12 | ]]; |
13 | |
14 | sS statements = [[ |
15 | ghwqkbpspivlalrb ypnmpoezxeomgaof "isInteger" |
16 | ghwqkbpspivlalrb cukovmzoaabrjkad "isQuoted" |
17 | ghwqkbpspivlalrb vejphbmbhldbwuiw "plus" |
18 | ghwqkbpspivlalrb ijecnpcajbasqhgv "bigint" |
19 | mssmzemxxztdpphw jcnbmtmfzktxhzyf vejphbmbhldbwuiw |
20 | yrxfddfomyzlqwri ypnmpoezxeomgaof ijecnpcajbasqhgv |
21 | ]]; |
22 | |
23 | p {
|
24 | useConcepts(concepts); |
25 | useFacts_cl(statements); |
26 | printIndent(eval(parse(print("1"))));
|
27 | printIndent(eval(parse(print("1 + 2 + 3"))));
|
28 | } |
29 | |
30 | static Lisp parse(S s) {
|
31 | ret englishToLispWith(s, ll("jcnbmtmfzktxhzyf"));
|
32 | } |
33 | |
34 | static O eval(Lisp l) { ret generalLispEval(l); } |
Began life as a copy of #1007940
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: | #1007950 |
| Snippet name: | Thought Bubble 1 prelude 2: Parsing test |
| Eternal ID of this version: | #1007950/13 |
| Text MD5: | 886339b5cebfbac13a3d1333659ab26c |
| Transpilation MD5: | 9d3118958fa313fe24ac781d5a12ee58 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-04-17 20:36:55 |
| Source code size: | 1092 bytes / 34 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 777 / 1764 |
| Version history: | 12 change(s) |
| Referenced in: | [show references] |