Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

34
LINES

< > BotCompany Repo | #1007950 // Thought Bubble 1 prelude 2: Parsing test

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (10245L/70K).

!7

sS concepts = [[
  ["ypnmpoezxeomgaof", "isInteger", "the JavaX function"],
  ["cukovmzoaabrjkad", "isQuoted", "the JavaX function"],
  ["vejphbmbhldbwuiw", "plus", "the JavaX function"],
  ["ijecnpcajbasqhgv", "bigint", "the JavaX function"],
  ["ghwqkbpspivlalrb", "X is the JavaX standard function called Y."],
  ["jcnbmtmfzktxhzyf", "X + Y"]
  ["mssmzemxxztdpphw", "X evaluates through Y."],
  ["yrxfddfomyzlqwri", "A leaf of type X evaluates through Y."],
]];

sS statements = [[
  ghwqkbpspivlalrb ypnmpoezxeomgaof "isInteger"
  ghwqkbpspivlalrb cukovmzoaabrjkad "isQuoted"
  ghwqkbpspivlalrb vejphbmbhldbwuiw "plus"
  ghwqkbpspivlalrb ijecnpcajbasqhgv "bigint"
  mssmzemxxztdpphw jcnbmtmfzktxhzyf vejphbmbhldbwuiw
  yrxfddfomyzlqwri ypnmpoezxeomgaof ijecnpcajbasqhgv
]];

p {
  useConcepts(concepts);
  useFacts_cl(statements);
  printIndent(eval(parse(print("1"))));
  printIndent(eval(parse(print("1 + 2 + 3"))));
}

static Lisp parse(S s) {
  ret englishToLispWith(s, ll("jcnbmtmfzktxhzyf"));
}

static O eval(Lisp l) { ret generalLispEval(l); }

Author comment

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: 538 / 1234
Version history: 12 change(s)
Referenced in: #1007956 - Thought Bubble 1 prelude 3: Parsing test with precedence [WORKS]