1 | static Set<S> nlLogic_allLHSEvalFragments(IfThen rule) { |
2 | ret nlLogic_allLHSEvalFragments_visit(rule); |
3 | } |
4 | |
5 | static Set<S> nlLogic_allLHSEvalFragments(L<IfThen> rules) { |
6 | ret nlLogic_allLHSEvalFragments_visit(collect(rules, 'in)); |
7 | } |
8 | |
9 | static Set<S> nlLogic_allLHSEvalFragments_visit(O toVisit) { |
10 | final new TreeSet<S> set; |
11 | nlLogic_visit(toVisit, voidfunc(O o) { |
12 | if (o cast Func) if (eq(o.name, 'eval)) set.add(o.arg.text()); |
13 | }); |
14 | ret set; |
15 | } |
Began life as a copy of #1018158
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: | #1018159 |
Snippet name: | nlLogic_allLHSEvalFragments - needs rules with expanded macros |
Eternal ID of this version: | #1018159/4 |
Text MD5: | 968a236cc54d746cbed8b9c9ca79b7ac |
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-06 11:26:38 |
Source code size: | 462 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 371 / 420 |
Version history: | 3 change(s) |
Referenced in: | [show references] |