1 | static void ai_spec_applyRule(S rule) { |
2 | AI_Rule r = ai_parseRule(rule); |
3 | ret if r == null; |
4 | |
5 | L<SS> l = ai_texts_dollarAny_multi(r.antecedents); |
6 | for (SS map : l) { |
7 | S source = "Rule {" + rule + "} with " + struct(map); |
8 | postWithSource(ai_replaceStandaloneVarsInTriple(r.consequent, map), source); |
9 | } |
10 | } |
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: | #1012142 |
Snippet name: | ai_spec_applyRule |
Eternal ID of this version: | #1012142/5 |
Text MD5: | 01ce95989738fa8dd818c2e53ca75ca0 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-21 19:45:28 |
Source code size: | 324 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 442 / 464 |
Version history: | 4 change(s) |
Referenced in: | [show references] |