1 | static Bool woodyEvalTimeCondition(S exp) {
|
2 | if (jmatch("earlymorning()", exp)) ret hourBetween(4, 8);
|
3 | if (jmatch("morning()", exp)) ret hourBetween(8, 11);
|
4 | if (jmatch("midday()", exp)) ret hourBetween(11, 14);
|
5 | if (jmatch("afternoon()", exp)) ret hourBetween(14, 17);
|
6 | if (jmatch("teatime()", exp)) ret hourBetween(17, 18);
|
7 | if (jmatch("evening()", exp)) ret hourBetween(18, 21);
|
8 | if (jmatch("night()", exp)) ret hourBetween(21, 23);
|
9 | if (jmatch("midnight()", exp)) ret hourBetween(23, 1);
|
10 | if (jmatch("latenight()", exp)) ret hourBetween(1, 4);
|
11 | null; |
12 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1008887 |
| Snippet name: | woodyEvalTimeCondition |
| Eternal ID of this version: | #1008887/3 |
| Text MD5: | 7b46a3588e70cd98c3e8106010dce212 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-06-18 18:09:31 |
| Source code size: | 616 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 786 / 821 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |