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

12
LINES

< > BotCompany Repo | #1022534 // tok_directSnippetRefs

JavaX fragment (include)

1  
// # 123 => "#123"
2  
static void tok_directSnippetRefs(L<S> tok) {
3  
  int i = -1;
4  
  while ((i = jfind(tok, i+1, "#<int>", tokcondition {
5  
    ret !eqOneOf(_get(tok, i-1), "include", "once");
6  
  })) >= 0) {
7  
    S id = tok.get(i+2);
8  
    clearTokens(tok, i+1, i+3);
9  
    tok.set(i, quote("#" + id));
10  
    reTok(tok, i, i+3);
11  
  }
12  
}

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: #1022534
Snippet name: tok_directSnippetRefs
Eternal ID of this version: #1022534/3
Text MD5: 56959f5e7a46f91fe803c6bf4b698e8f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-03 15:38:00
Source code size: 331 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 294 / 340
Version history: 2 change(s)
Referenced in: [show references]