1 | static L<RuleEngine2.Rule> gazelle_possibleNextRulesForPreContext(LS preContext, O... _) { |
2 | GazelleEvalContext ctx = gazelle_newContextFromParams(_); |
3 | gazelle_dropRulesNotOnInput(ctx); |
4 | ctx.engine.dropRulesWhere(r -> !empty(r.purpose)); |
5 | ctx.engine.dropRulesWhere(r -> gazelle_historyLevelRequired(r) > l(preContext)+1); |
6 | // TODO: filter more |
7 | ret ctx.engine.rules; |
8 | } |
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: | #1022486 |
Snippet name: | gazelle_possibleNextRulesForPreContext [dev.] |
Eternal ID of this version: | #1022486/2 |
Text MD5: | df20a4d6e5ba3b491dfcc095a0a3af9c |
Author: | stefan |
Category: | javax / gazelle |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-18 22:33:37 |
Source code size: | 380 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 235 / 273 |
Version history: | 1 change(s) |
Referenced in: | [show references] |