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

19
LINES

< > BotCompany Repo | #1002775 // Test snlTok for NL (calling external bot)

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

Libraryless. Click here for Pure Java version (3905L/26K/83K).

1  
!759
2  
3  
4  
p {
5  
  O bot = hotwire("#1002765");
6  
  
7  
  Native n = new Native([[ [Y] = snlTok("hello < world") ]]);
8  
  
9  
  if (!n.callExternal(bot))
10  
    print("no match");
11  
  else {
12  
    print("match: " + structure(n.m));
13  
    print("Y = " + snlFromTree(n.getOuter("Y")));
14  
  }
15  
  
16  
  //print("yo: " + new Native([[ "[\"hello\", \"<\", \"world\"]" = snlTok("hello < world") ]]).callExternal(bot));
17  
  print("yo: " + new Native([[ ["hello", "<", "world"] = snlTok("hello < world") ]]).callExternal(bot));
18  
  print("bad: " + new Native([[ "" = snlTok("hello < world") ]]).callExternal(bot));
19  
}

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: #1002775
Snippet name: Test snlTok for NL (calling external bot)
Eternal ID of this version: #1002775/1
Text MD5: 97180ecd3fbe302b7df3794f9e735445
Transpilation MD5: 4e58da721814446e835b7946c4d4912f
Author: stefan
Category: eleu / nl
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-02-24 22:04:20
Source code size: 590 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 755 / 792
Referenced in: [show references]