Download Jar. Uses 3874K of libraries. Click here for Pure Java version (7625L/54K).
1 | !7 |
2 | |
3 | sS defs = [[ |
4 | A cup of water = A cup with water inside |
5 | A cup of Peter = A cup that belongs to Peter |
6 | A cup of glass = A cup that consists of glass |
7 | A cup of style = A cup that has a lot of style |
8 | a $a with $b inside = [implies] $b is smaller than a $a |
9 | a $a that belongs to $b = [implies] $b is a person |
10 | a $a that consists of $b = [implies] $b is a material |
11 | a $a that has a lot of $b = [implies] $b is a property |
12 | ]]; |
13 | |
14 | p-exp { |
15 | new ThoughtSpace1 ts; |
16 | ts.objects.add(Input("a cup of joe")); |
17 | |
18 | ts.addDefinitions(defs); |
19 | ts.think(false); |
20 | //ts.printDefinitionsForInput(); |
21 | |
22 | for (Definition d : ts.definitionsForInput()) { |
23 | print("\nTrying definition " + sfu(d)); |
24 | new ThoughtSpace1 ts2; |
25 | ts2.objects.add(Input((S) d.rhs)); |
26 | ts2.addDefinitions(defs); |
27 | ts2.think(false); |
28 | ts2.removeInitialObjects(); |
29 | |
30 | //pnlStruct(ts2.literalDefinitions()); |
31 | pnlStruct(ts2.statements()); |
32 | } |
33 | } |
Began life as a copy of #1017032
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017041 |
Snippet name: | Patterns Step 2, shortened [OK] |
Eternal ID of this version: | #1017041/2 |
Text MD5: | 09a7a12f4a05d46e316dbdeb81faa829 |
Transpilation MD5: | 822fd2d7eb53601cc8151d1696a58084 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-11 13:14:28 |
Source code size: | 948 bytes / 33 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 451 / 854 |
Version history: | 1 change(s) |
Referenced in: | [show references] |