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