1 | static Runnable dm_ai_ruleToRunnable(S s) {
|
2 | L<S> l = tok_splitAtComma(s); |
3 | if (l(l) != 2) null; |
4 | fS cmd = second(l); |
5 | new Matches m; |
6 | if (!swic_trim(first(l), "whenever ", m)) null; |
7 | final F0<Bool> cond = dm_ai_conditionToPredicate1(m.rest()); |
8 | if (cond == null) null; |
9 | ret r {
|
10 | if (isTrue(callF(cond))) |
11 | dm_processCommand1(cmd); |
12 | }; |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1016887 |
| Snippet name: | dm_ai_ruleToRunnable |
| Eternal ID of this version: | #1016887/2 |
| Text MD5: | 9e643486b0d1995501b85738ef46d098 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-07-06 16:42:28 |
| Source code size: | 365 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 569 / 623 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |