Download Jar. Libraryless. Click here for Pure Java version (10429L/71K).
!7 !include #1007960 // englishToConceptLanguage_xyz sS concepts = [[ ["jcnbmtmfzktxhzyf", "X + Y"], ["bwqhmnorjpyomdbv", "X * Y", "multiplication"], ["mcoswmplpqlieruo", "(X)"], ["olphazqzxxnvtjcx", "X evaluates through standard function Y."], ["wwaprwlmqzqeaikp", "A leaf satisfying standard function X evaluates through standard function Y."], ["hkihrqgdlkdayxzn", "X is just bracketing."], ]]; sS statements = [[ olphazqzxxnvtjcx jcnbmtmfzktxhzyf "plus" olphazqzxxnvtjcx bwqhmnorjpyomdbv "multiply" hkihrqgdlkdayxzn mcoswmplpqlieruo wwaprwlmqzqeaikp "isInteger" "bigint" ]]; p { useConcepts(concepts); useFacts_cl(statements); //set englishToConceptLanguage_xyz_debug; printIndent(fromLines(parseMulti(print("1"))); printIndent(fromLines(parseMulti(print("(5)"))); printIndent(fromLines(parseMulti(print("2 * (3)"))); printIndent(fromLines(parseMulti(print("1 * (2 + 3)"))); printIndent(fromLines(parseMulti(print("(1 + 2) * 3"))); printIndent(fromLines(parseMulti(print("(1 + 2) * (3 + 4)"))); } static L<Lisp> parseMulti(S s) { ret map(f clParse, englishToCLWith_multi(s, ll("mcoswmplpqlieruo", "jcnbmtmfzktxhzyf", "bwqhmnorjpyomdbv"))); } static O eval(Lisp l) { ret generalLispEval(l); }
Began life as a copy of #1007962
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: | #1007968 |
Snippet name: | Thought Bubble 1 prelude 4b: _multi |
Eternal ID of this version: | #1007968/6 |
Text MD5: | 6c305a8dc11c0e738db1d23ce7ab58d9 |
Transpilation MD5: | 1f0e7cd277ac02ca18a776c12021f303 |
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 22:11:16 |
Source code size: | 1277 bytes / 37 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 527 / 1331 |
Version history: | 5 change(s) |
Referenced in: | [show references] |