static void applyRule_all(S ruleID) { // process the rule Lisp rule = getLispTruth(ruleID); if (rule == null) { print("Rule not found: " + ruleID); ret; } //print("Applying rule " + ruleID); if (applyRule_all_debug) print_setPrefixForThread(ruleID + "> "); try { applyRule_all(rule, ruleID); } finally { if (applyRule_all_debug) print_setPrefixForThread(""); } } svoid applyRule_all(Lisp rule, S ruleID) { for (Map<S, Lisp> matches : matchConditions_all(dropLast(rule.args))) emit(lispReplaceVars(last(rule.args), matches), ruleID); }
Began life as a copy of #1008134
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009688 |
Snippet name: | applyRule_all - full rule application - shortened |
Eternal ID of this version: | #1009688/2 |
Text MD5: | 9602ef1d94d311d85f9bd32c5a855ab4 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-14 02:13:21 |
Source code size: | 581 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 601 / 538 |
Version history: | 1 change(s) |
Referenced in: | [show references] |