Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

21
LINES

< > BotCompany Repo | #1001519 // Sequences of NL instructions (developing)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (266L/3K/6K).

1  
!747
2  
!multi-line strings
3  
4  
m {
5  
  static S input =
6  
    [[print "hello", sleep, print "mama", sleep, print ":)".]];
7  
  
8  
  p {
9  
    L<S> tok = codeTokensOnly(parse3(input));
10  
    for (int i = 0; i < l(tok); i++) {
11  
      S t = tok.get(i);
12  
      if (eqic(t, "print"))
13  
        print(unquote(tok.get(++i)));
14  
      else if (eqic(t, "sleep")) {
15  
        print("[zzz]");
16  
        sleepSeconds(1);
17  
      } else
18  
        print("? " + t);
19  
    }
20  
  }
21  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1001519
Snippet name: Sequences of NL instructions (developing)
Eternal ID of this version: #1001519/1
Text MD5: 0197548e5af1655aee3c2e8ca03e3f60
Transpilation MD5: afaec6c227f87f3252b84742946411b7
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-21 20:05:38
Source code size: 450 bytes / 21 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 695 / 1224
Referenced in: [show references]