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

13
LINES

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

JavaX fragment (include)

1  
sclass WordTokReplacerRule extends WordTokeRule {
2  
  LS tokReplaced;
3  
  
4  
  *() {}
5  
  *(S sentence, S _vars, S replaced) {
6  
    super(sentence, asCISet(javaTokC(_vars)));
7  
    tokReplaced = wordTok_noBrackets(replaced);
8  
  }
9  
  
10  
  run {
11  
    emit(join(replaceCodeTokensUsingMap(tokReplaced, map)));
12  
  }
13  
}

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: 289 / 358
Version history: 1 change(s)
Referenced in: [show references]