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

13
LINES

< > BotCompany Repo | #1013231 // Test ai_patternSwitch

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

Download Jar. Libraryless. Click here for Pure Java version (6207L/42K).

!7

p {
  autoRestart();
  set ai_patternSwitch_debug;
  
  S input = "This (bla) is a (sentence)";
  printStruct(ai_operands(input));
  printStruct(javaTokPlusBracketsC_unquote(input));
  assertEquals("Any (bla) is a (sentence)",
    ai_patternSwitch("Any * is a *", input));
  print("OK");
}

Author comment

Began life as a copy of #1013230

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: #1013231
Snippet name: Test ai_patternSwitch
Eternal ID of this version: #1013231/7
Text MD5: 7d9ec6768f2f7bb96253416c545c6e61
Transpilation MD5: 0cec800665d2d78b28d58ad43ddcde8f
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-28 23:29:42
Source code size: 305 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 416 / 881
Version history: 6 change(s)
Referenced in: [show references]