Libraryless. Click here for Pure Java version (4687L/30K/97K).
!752 static S code = [=[ [$x=$x] ]=]; p { Lisp parsed = nlParse(code, false); // no unbracket printStructure("parsed: " + parsed); assertTrue("juxta", isJuxta(parsed)); print("ops: " + structure(snlSplitOps(parsed.get(0)))); new Prolog p; p.showStuff = true; p.addClauses(parsed); print("Program: " + structure_seen(p.program)); printStructure(p.solve(nlParse("1=1"))); }
Began life as a copy of #1002845
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: | #1002848 |
Snippet name: | Test Prolog with NL 3 ($x=$x) |
Eternal ID of this version: | #1002848/1 |
Text MD5: | e3f96f2144f750f2437a69dc27d05aa1 |
Transpilation MD5: | 93cc765b2bbe13cc2df2833d028048c0 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-03-03 03:23:18 |
Source code size: | 419 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 615 / 632 |
Referenced in: | #3000382 - Answer for ferdie (>> t = 1, f = 0) #3000383 - Answer for funkoverflow (>> t=1, f=0 okay) |