Download Jar. Libraryless. Click here for Pure Java version (12887L/94K).
1 | !7 |
2 | |
3 | p-exp {
|
4 | L<IfThen> rules = ai_parseRules(mL_raw([["Enter" rules]])); |
5 | print("Got " + n2(rules, "rule"));
|
6 | |
7 | final new NLLogicChecker_v3 c; |
8 | c.facts = mL("Random facts");
|
9 | |
10 | final new NLLogicChecker_v2.Matching m; |
11 | for (final IfThen rule : rules) |
12 | c.iterate(rule.in, m, r {
|
13 | //print("Got matches: " + sfu(m.matches));
|
14 | Exp out = c.apply(rule.out, m); |
15 | for (Exp e : nlLogic_unrollAnd(out)) |
16 | if (eq(e.text(), "enter")) |
17 | print("Entering. " + out);
|
18 | }); |
19 | } |
Began life as a copy of #1017829
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: | #1017885 |
| Snippet name: | "Enter" Rule [dev.] |
| Eternal ID of this version: | #1017885/2 |
| Text MD5: | b0e21e4684a5be9e70dc3446b4924894 |
| Transpilation MD5: | 47d0cf34147465cc575290b93aa9915d |
| 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 10:22:27 |
| Source code size: | 517 bytes / 19 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 771 / 1871 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |