Download Jar. Libraryless. Click here for Pure Java version (16531L/121K).
1 | !7 |
2 | |
3 | p-exp { |
4 | final IfThen rule = nlLogic_parseRuleWithMacros([[ |
5 | i(can you $walk_on_water?) |
6 | && fact(nobody can $walk_on_water) |
7 | => say(no. nobody can $walk_on_water) |
8 | ]]); |
9 | final new NLLogicChecker_v3 c; |
10 | c.input = "can you look around corners?"; |
11 | |
12 | nlLogic_producePartialApplications(c, rule, voidfunc(IfThen r) { |
13 | print("New rule: " + r) |
14 | }); |
15 | } |
Began life as a copy of #1017930
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020037 |
Snippet name: | Partial rule evaluation Spike 2 [OK] |
Eternal ID of this version: | #1020037/3 |
Text MD5: | 11bf7151f13ed36f3fc347df096ef771 |
Transpilation MD5: | bf2ea747200b56a2d1d43486a39fd7cd |
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-12-04 17:27:36 |
Source code size: | 378 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 322 / 767 |
Version history: | 2 change(s) |
Referenced in: | [show references] |