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

11
LINES

< > BotCompany Repo | #1017830 // Test NLStringMatcher_dollarVars_underscores (OK)

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

Download Jar. Libraryless. Click here for Pure Java version (7145L/51K).

!7

p-exp {
  S pat = "$gertrude is $afraid_of $wolves";
  S s = "klaus is afraid of wolves";
  SS matches = litorderedmap("$gertrude" := "Klaus", "$afraid_of" := "afraid of");

  printStruct(matchDollarVarsIC_underscores(pat, s));
  print(new NLStringMatcher_dollarVars_underscores().match(pat, s, matches));
  printStruct(matches);
}

Author comment

Began life as a copy of #1017696

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017830
Snippet name: Test NLStringMatcher_dollarVars_underscores (OK)
Eternal ID of this version: #1017830/5
Text MD5: 9e09122c225a9f461889ed36c037945a
Transpilation MD5: d62d73fade84f15f0b1a34a2eb7daae6
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-15 16:00:51
Source code size: 345 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 433 / 1010
Version history: 4 change(s)
Referenced in: [show references]