Download Jar. Libraryless. Click here for Pure Java version (10804L/59K).
1 | !7 |
2 | |
3 | p-exp { |
4 | new DerivedMechLists lists; // use general facts & parsing info |
5 | BakedBot bot = new(lists); |
6 | lists.setText("NL Logic Examples", [[ |
7 | input(how many $faces are on a $rubiks_cube) && fact(a $rubiks_cube has $six $faces) => output($six) |
8 | |
9 | input(how many segments are on a face of a rubik's cube) => input(how many segments are on a {face of a rubik's cube}) |
10 | ]]); |
11 | lists.setText("Rule & Fact Lists", ""); |
12 | lists.setText("Default active scripts", ""); |
13 | |
14 | for (S s : ll( |
15 | "how many segments are on a {face of a rubik's cube}", |
16 | "how many segments are on a face of a rubik's cube")) |
17 | bot.pcheckOrPrintLog(s, "9"); |
18 | } |
Began life as a copy of #1017770
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017870 |
Snippet name: | Test a single rule [OK] |
Eternal ID of this version: | #1017870/13 |
Text MD5: | a216212ece951d235df25d4246896b04 |
Transpilation MD5: | 2e2869657543f902dcca9f45ac30dfac |
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-08-19 01:26:11 |
Source code size: | 665 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 435 / 1089 |
Version history: | 12 change(s) |
Referenced in: | [show references] |