Libraryless. Click here for Pure Java version (5591L/36K).
svoid test_wordTokReplacerRuleOnStarVars() { assertEqualsVerbose(litciset("John is John"), applyWordTokRule(wordTokReplacerRuleOnStarVars("*a is *b", "a is a"), "John is whatever")); WordTokRule rule = wordTokReplacerRuleOnStarVars("*a is *{b c}", "a is a"); rule.debug = true; printStruct("tokPat", rule.tokPat()); assertEqualsVerbose(litciset("John is John"), applyWordTokRule(rule, "John is whatever")); }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1023761 |
Snippet name: | test_wordTokReplacerRuleOnStarVars - also with curly vars |
Eternal ID of this version: | #1023761/8 |
Text MD5: | 110cb83e261fa6b4321468b04eaa8608 |
Transpilation MD5: | 2dc7b8196de3d6d133bc10c823af3ee6 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-08 19:40:16 |
Source code size: | 424 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 192 / 293 |
Version history: | 7 change(s) |
Referenced in: | [show references] |