1 | svoid dm_gazelle_matchAdditionalInput3(L<GazelleTree> l, SS inputsByType, O... _) {
|
2 | for (GazelleTree t : l) |
3 | if (t.rule() != null) {
|
4 | RuleEngine2_MatchedRule mr = t.mr; |
5 | L<TextAndType> insWithType = t.rule().insWithType; |
6 | while licensed {
|
7 | int iCond = t.mr.iCond; |
8 | TextAndType next = get(insWithType, iCond); |
9 | if (next == null || !startsWith(next.type, "history-")) break; |
10 | if (ai_ruleEngine2_matchStep(t.mr, inputsByType, true, _)) {
|
11 | print("Input match OK. new map: " + t.mr.map + ". Updating prediction.");
|
12 | gazelle_addPredictionToTreeNode(t); |
13 | } else |
14 | break with print("Input match failed");
|
15 | } |
16 | } |
17 | } |
Began life as a copy of #1021779
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: | #1022069 |
| Snippet name: | dm_gazelle_matchAdditionalInput3 |
| Eternal ID of this version: | #1022069/5 |
| Text MD5: | 7ffb7d57b9b1f86c1283b303fb716d68 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-03-06 10:54:04 |
| Source code size: | 709 bytes / 17 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 488 / 527 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |