Libraryless. Click here for Pure Java version (1342L/9K/31K).
!752 !include #1002826 // Prolog p { Prolog p; p = new Prolog; p.showStuff = true; p.addClause(lisp("yes", "frog")); printStructure(p.solve(lisp("yes", "X"))); p = new Prolog; p.addClause(lisp("=", "X", "X")); Map solution = p.solve(lisp("=", "A", "hello")); printStructure(solution); }
Began life as a copy of #1002827
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: | #1002828 |
Snippet name: | Test class Prolog 2 (X=X) |
Eternal ID of this version: | #1002828/1 |
Text MD5: | 070f61c0c7fe3f51ae945b714fe5551c |
Transpilation MD5: | e1e788d81a4c413d079e0c7568438c01 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-02-29 02:03:18 |
Source code size: | 328 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 643 / 684 |
Referenced in: | [show references] |