static Runnable dm_ai_ruleToRunnable(S s) { L<S> l = tok_splitAtComma(s); if (l(l) != 2) null; fS cmd = second(l); new Matches m; if (!swic_trim(first(l), "whenever ", m)) null; final F0<Bool> cond = dm_ai_conditionToPredicate1(m.rest()); if (cond == null) null; ret r { if (isTrue(callF(cond))) dm_processCommand1(cmd); }; }
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: | 566 / 618 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |