Libraryless. Click here for Pure Java version (5585L/36K/115K).
!752 p { new Prolog p; int n = p.mark(); p.addStatement("a garden is a nice thing"); S x = p.solveAsText(print("a garden is a $x thing"), "x"); assertEqualsVerbose("nice", x); for (S statement : p.statementsAsText(n)) print("> " + statement); print("ok"); }
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: | #1002934 |
| Snippet name: | Test prolog as a data store |
| Eternal ID of this version: | #1002934/1 |
| Text MD5: | e8b0e0ff872fcd015413c788a67c39df |
| Transpilation MD5: | 5ba109c04dfc5a842976de923b82e5df |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-04-07 21:06:38 |
| Source code size: | 288 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 902 / 1012 |
| Referenced in: | [show references] |