| 1 | static LPair<RuleEngine2.Rule, SS> ai_ruleEngine2_rulesForInput(RuleEngine2 engine, S q) {
 | 
| 2 | LS tokI = javaTokNPunctuationWithBrackets(q); | 
| 3 | new LPair<RuleEngine2.Rule, SS> l; | 
| 4 |   for (RuleEngine2.Rule rule : engine.rules) {
 | 
| 5 | S cond = first(rule.in); | 
| 6 | SS map = zipTwoListsToCIMap_strict_withoutEquals(javaTokNPunctuationWithBrackets(cond), tokI); | 
| 7 | if (map == null) continue; | 
| 8 | //print(map + " | " + cond + " | " + rule.vars); | 
| 9 | l.add(pair(rule, map)); | 
| 10 | } | 
| 11 | ret l; | 
| 12 | } | 
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: | 487 / 530 | 
| Version history: | 1 change(s) | 
| Referenced in: | [show references] |