Download Jar. Libraryless. Click here for Pure Java version (10511L/72K).
1 | !7 |
2 | |
3 | !include #1007960 // englishToConceptLanguage_xyz |
4 | |
5 | sS concepts = [[ |
6 | ["jcnbmtmfzktxhzyf", "X + Y"], |
7 | ["bwqhmnorjpyomdbv", "X * Y", "multiplication"], |
8 | ["mcoswmplpqlieruo", "(X)"], |
9 | ["olphazqzxxnvtjcx", "X evaluates through standard function Y."], |
10 | ["wwaprwlmqzqeaikp", "A leaf satisfying standard function X evaluates through standard function Y."], |
11 | ["hkihrqgdlkdayxzn", "X is just bracketing."], |
12 | ]]; |
13 | |
14 | sS statements = [[ |
15 | olphazqzxxnvtjcx jcnbmtmfzktxhzyf "plus" |
16 | olphazqzxxnvtjcx bwqhmnorjpyomdbv "multiply" |
17 | hkihrqgdlkdayxzn mcoswmplpqlieruo |
18 | wwaprwlmqzqeaikp "isInteger" "bigint" |
19 | ]]; |
20 | |
21 | p-tt { |
22 | centerHigherConsole(); |
23 | useConcepts(concepts); |
24 | useFacts_cl(statements); |
25 | //set englishToConceptLanguage_xyz_debug; |
26 | printIndent(fromLines(parseMulti(print("1"))); |
27 | printIndent(fromLines(parseMulti(print("(5)"))); |
28 | printIndent(fromLines(parseMulti(print("2 * (3)"))); |
29 | printIndent(fromLines(parseMulti(print("1 * (2 + 3)"))); |
30 | printIndent(fromLines(parseMulti(print("(1 + 2) * 3"))); |
31 | printIndent(fromLines(parseMulti(print("(1 + 2) * (3 + 4)"))); |
32 | printIndent(fromLines(parseMulti(print("1 + 2 * 3"))); |
33 | printIndent(fromLines(parseMulti(print("1 * 2 + 3"))); |
34 | } |
35 | |
36 | static L<Lisp> parseMulti(S s) { |
37 | ret englishToLispWith_multi(s, ll("mcoswmplpqlieruo", "jcnbmtmfzktxhzyf", "bwqhmnorjpyomdbv")); |
38 | } |
39 | |
40 | static O eval(Lisp l) { ret generalLispEval(l); } |
Began life as a copy of #1007968
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: | #1007970 |
Snippet name: | Thought Bubble 1 prelude 5: englishToLisp_multi |
Eternal ID of this version: | #1007970/6 |
Text MD5: | 99ab5c68e55d136ffde0c742a88474a3 |
Transpilation MD5: | c6c83ec5cf351ec9ec2ab502ef4efd0f |
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-18 01:09:18 |
Source code size: | 1408 bytes / 40 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 639 / 1315 |
Version history: | 5 change(s) |
Referenced in: | [show references] |