Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1020037 // Partial rule evaluation Spike 2 [OK]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (16531L/121K).

!7

p-exp {
  final IfThen rule = nlLogic_parseRuleWithMacros([[
    i(can you $walk_on_water?)
    && fact(nobody can $walk_on_water)
    => say(no. nobody can $walk_on_water)
  ]]);
  final new NLLogicChecker_v3 c;
  c.input = "can you look around corners?";

  nlLogic_producePartialApplications(c, rule, voidfunc(IfThen r) {
    print("New rule: " + r)
  });
}

Author comment

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: 216 / 536
Version history: 2 change(s)
Referenced in: [show references]