static LPair<RuleEngine2.Rule, SS> ai_ruleEngine2_rulesForInput(RuleEngine2 engine, S q) { LS tokI = javaTokNPunctuationWithBrackets(q); new LPair<RuleEngine2.Rule, SS> l; for (RuleEngine2.Rule rule : engine.rules) { S cond = first(rule.in); SS map = zipTwoListsToCIMap_strict_withoutEquals(javaTokNPunctuationWithBrackets(cond), tokI); if (map == null) continue; //print(map + " | " + cond + " | " + rule.vars); l.add(pair(rule, map)); } ret l; }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1021400 |
Snippet name: | ai_ruleEngine2_rulesForInput |
Eternal ID of this version: | #1021400/2 |
Text MD5: | f4927b68388d1331839366b2ad53528e |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-10 20:27:15 |
Source code size: | 488 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 268 / 304 |
Version history: | 1 change(s) |
Referenced in: | [show references] |