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

13
LINES

< > BotCompany Repo | #1023178 // WordTokReplacerRule (unused)

JavaX fragment (include)

sclass WordTokReplacerRule extends WordTokeRule {
  LS tokReplaced;
  
  *() {}
  *(S sentence, S _vars, S replaced) {
    super(sentence, asCISet(javaTokC(_vars)));
    tokReplaced = wordTok_noBrackets(replaced);
  }
  
  run {
    emit(join(replaceCodeTokensUsingMap(tokReplaced, map)));
  }
}

Author comment

Began life as a copy of #1023174

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: #1023178
Snippet name: WordTokReplacerRule (unused)
Eternal ID of this version: #1023178/2
Text MD5: 1357ee823c9f285b9dbcc500c7ebc12f
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 12:48:15
Source code size: 307 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 288 / 356
Version history: 1 change(s)
Referenced in: [show references]