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

9
LINES

< > BotCompany Repo | #1023514 // wordTokReplacerRuleOnXY - with variables "X" and "Y" (must not all be used)

JavaX fragment (include)

static WordTokRule wordTokReplacerRuleOnXY(S sentence, S replaced) {
  ret wordTokReplacerRule(sentence, "X Y", replaced);
}

static WordTokRule wordTokReplacerRuleOnXY(S s) {
  PairS p = splitAtDoubleArrow_pair(s);
  if (p == null) { print("No arrow: " + s); null; }
  ret wordTokReplacerRuleOnXY(p.a, p.b);
}

Author comment

Began life as a copy of #1023505

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023514
Snippet name: wordTokReplacerRuleOnXY - with variables "X" and "Y" (must not all be used)
Eternal ID of this version: #1023514/3
Text MD5: a72bafb6fa516bdeba8fc0fce23208b6
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-27 13:03:09
Source code size: 318 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 191 / 215
Version history: 2 change(s)
Referenced in: [show references]