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

7
LINES

< > BotCompany Repo | #1021208 // ai_addDollarSignToCertainTokens_withRanges

JavaX fragment (include)

// modifies & denaturalizes the tokens (breaks connection with full text)
static L<TokenAndRange> ai_addDollarSignToCertainTokens_withRanges(L<TokenAndRange> tokens, final Set<S> set) {
  for (TokenAndRange t : tokens)
    if (contains(set, t.token))
      t.token = stringToDollarVar1(t.token);
  ret tokens;
}

Author comment

Began life as a copy of #1021207

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: #1021208
Snippet name: ai_addDollarSignToCertainTokens_withRanges
Eternal ID of this version: #1021208/3
Text MD5: f979a43b2df8c5805b673bc7d5720c0b
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-09 16:17:37
Source code size: 317 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 232 / 273
Version history: 2 change(s)
Referenced in: [show references]