1 | static ExecutedRule nlLogic_executedRuleFromRuleWithParams(RuleWithParams r) { |
2 | ret nlLogic_executedRuleFromRuleWithParams(r, null); |
3 | } |
4 | |
5 | static ExecutedRule nlLogic_executedRuleFromRuleWithParams(RuleWithParams r, NLLogicChecker_v2 logicChecker) { |
6 | L<Exp> l = nlLogic_unrollAndApplyRuleWithParams(r); |
7 | if (r cast FailedRule) { |
8 | new ExecutedRule e; |
9 | e.logicChecker = logicChecker; |
10 | e.rule = r; |
11 | assertNotNull(r.remainingCondition); |
12 | ret e; |
13 | } |
14 | ExecutedRule e = ExecutedRule(r, |
15 | nlLogic_certainOperatorArgs(l, 'output, 'say), |
16 | nlLogic_certainOperatorArgs(l, 'fact), |
17 | nlLogic_certainOperatorArgs(l, 'input)); |
18 | e.logicChecker = logicChecker; |
19 | ret e; |
20 | } |
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: | #1018276 |
Snippet name: | nlLogic_executedRuleFromRuleWithParams |
Eternal ID of this version: | #1018276/6 |
Text MD5: | 6dc20a7648ce9d8aa052725a7d4995e2 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-09-23 18:41:54 |
Source code size: | 696 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 361 / 400 |
Version history: | 5 change(s) |
Referenced in: | [show references] |