1 | static Collection<S> nlLogic_certainOperatorArgsFromRuleWithParams(RuleWithParams r, S... operators) { |
2 | HashSet<S> set = lithashset(operators); |
3 | new LinkedHashSet<S> out; |
4 | for (Exp e : nlLogic_unrollAnd(r.rule.out)) { |
5 | e = nlLogic_applyMatches(e, r.matches); |
6 | if (e cast Func) |
7 | if (set.contains(e.name)) |
8 | out.add(nlLogic_text(e.arg)); |
9 | nlLogic_checkHelper(e, r.matches); // changes matches e.g. for newID() |
10 | } |
11 | ret out; |
12 | } |
Began life as a copy of #1018258
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: | #1018268 |
Snippet name: | nlLogic_certainOperatorArgsFromRuleWithParams |
Eternal ID of this version: | #1018268/4 |
Text MD5: | 06de159b1a974ad3fc703391868004b9 |
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-13 12:06:06 |
Source code size: | 458 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 410 / 446 |
Version history: | 3 change(s) |
Referenced in: | [show references] |