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).

!759


p {
  O bot = hotwire("#1002765");
  
  Native n = new Native([[ [Y] = snlTok("hello < world") ]]);
  
  if (!n.callExternal(bot))
    print("no match");
  else {
    print("match: " + structure(n.m));
    print("Y = " + snlFromTree(n.getOuter("Y")));
  }
  
  //print("yo: " + new Native([[ "[\"hello\", \"<\", \"world\"]" = snlTok("hello < world") ]]).callExternal(bot));
  print("yo: " + new Native([[ ["hello", "<", "world"] = snlTok("hello < world") ]]).callExternal(bot));
  print("bad: " + new Native([[ "" = snlTok("hello < world") ]]).callExternal(bot));
}

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: 754 / 790
Referenced in: [show references]