1 | static void tok_p_repeatWithSleep(L<S> tok) {
|
2 | int i; |
3 | while ((i = jfind(tok, "p-repeat with sleep * {")) >= 0) {
|
4 | S seconds = tok.get(i+6); // int or id |
5 | int idx = findCodeTokens(tok, i, false, "{");
|
6 | int j = findEndOfBracketPart(tok, idx); |
7 | tok.set(i+2, " { ");
|
8 | tok.set(j-1, "} }"); |
9 | reTok(tok, j-1); |
10 | reTok(tok, i+2); |
11 | } |
12 | } |
Began life as a copy of #1006502
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: | #1006511 |
| Snippet name: | tok_p_repeatWithSleep |
| Eternal ID of this version: | #1006511/1 |
| Text MD5: | cee7e82f60d6257881b46fb194fd9c2e |
| Author: | stefan |
| Category: | javax / transpiling |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-01-11 17:02:06 |
| Source code size: | 363 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 817 / 872 |
| Referenced in: | [show references] |