1 | static void nlLogic_iterate_withOnFail(final NLLogicChecker_v2 c, Exp e, final NLLogicChecker_v2.Matching m, final Runnable onMatch, final VF1<Exp> onFail) {
|
2 | final new Flag anyResults; |
3 | |
4 | if (e cast And) {
|
5 | final Exp b = e.b; |
6 | c.iterate_single(e.a, m, r {
|
7 | anyResults.raise(); |
8 | nlLogic_iterate_withOnFail(c, b, m, onMatch, onFail) |
9 | }); |
10 | } else |
11 | c.iterate_single(e, m, r {
|
12 | anyResults.raise(); |
13 | callF(onMatch); |
14 | }); |
15 | |
16 | if (!anyResults.isUp()) |
17 | callF(onFail, e); |
18 | } |
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: | #1018313 |
| Snippet name: | nlLogic_iterate_withOnFail - calls onFail when a term doesn't yield any results |
| Eternal ID of this version: | #1018313/10 |
| Text MD5: | 22d490e79fe89a3d415bd762c16f09dc |
| 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-19 17:06:25 |
| Source code size: | 526 bytes / 18 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 608 / 655 |
| Version history: | 9 change(s) |
| Referenced in: | [show references] |