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

9
LINES

< > BotCompany Repo | #1026192 // arbitraryVarsFlexMatchIC_tok_iterator - flexMatch with arbitrary variables and pretokenization (keep punctuation)

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (3702L) is out of date.

1  
static ItIt<SS> arbitraryVarsFlexMatchIC_tok_iterator(Set<S> vars, Tok pat, Tok input) {
2  
  new LS usedVars;
3  
  LS starsPat = arbitraryVarsToStars(pat.tok(), vars, usedVars);
4  
  ifdef arbitraryVarsFlexMatchIC_tok_iterator_debug
5  
    printStruct(+starsPat);
6  
  endifdef
7  
  ret mapI(flexMatchIC_tok_iterator(new Tok(starsPat), input),
8  
    m -> matchesToMapUsingVarList_ciMap(m, usedVars));
9  
}

Author comment

Began life as a copy of #1026163

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: #1026192
Snippet name: arbitraryVarsFlexMatchIC_tok_iterator - flexMatch with arbitrary variables and pretokenization (keep punctuation)
Eternal ID of this version: #1026192/4
Text MD5: 0a19215d2768a6d9bc112a04a1544b4f
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-28 14:02:25
Source code size: 391 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 215 / 301
Version history: 3 change(s)
Referenced in: [show references]