static Set<S> gazelle_inputExamplesFromRules(O... _) { F0<GazelleEvalContext> contextMaker = gazelle_contextMakerFromParams(_); Set<S> examples = ciSet(); L<RuleEngine2.Rule> rules = filter(contextMaker->engine.rules, r -> eqOneOf(r.purpose, 'preprocess, "") && !contains(r.comments, "disable")); for (RuleEngine2.Rule r : rules) { GRuleLine in = first(r.insWithType); if (in != null && eq(in.type, "standard")) examples.add(in.text); } ret examples; }
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, lnbujpyubztb, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1022455 |
| Snippet name: | gazelle_inputExamplesFromRules |
| Eternal ID of this version: | #1022455/3 |
| Text MD5: | e50188a5ebc14de2986c3270f67007d1 |
| Author: | stefan |
| Category: | javax / gazelle |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-03-17 17:47:57 |
| Source code size: | 498 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 568 / 600 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |