static L<RuleEngine2.Rule> gazelle_possibleNextRulesForPreContext(LS preContext, O... _) { GazelleEvalContext ctx = gazelle_newContextFromParams(_); gazelle_dropRulesNotOnInput(ctx); ctx.engine.dropRulesWhere(r -> !empty(r.purpose)); ctx.engine.dropRulesWhere(r -> gazelle_historyLevelRequired(r) > l(preContext)+1); // TODO: filter more ret ctx.engine.rules; }
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: | 233 / 270 |
Version history: | 1 change(s) |
Referenced in: | [show references] |