Libraryless. Click here for Pure Java version (5585L/36K/115K).
1 | !752 |
2 | |
3 | p { |
4 | new Prolog p; |
5 | int n = p.mark(); |
6 | p.addStatement("a garden is a nice thing"); |
7 | S x = p.solveAsText(print("a garden is a $x thing"), "x"); |
8 | assertEqualsVerbose("nice", x); |
9 | for (S statement : p.statementsAsText(n)) |
10 | print("> " + statement); |
11 | print("ok"); |
12 | } |
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: | 668 / 734 |
Referenced in: | [show references] |