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

9
LINES

< > BotCompany Repo | #1008966 // tok_juxtaposeCalls - experimental [and wrong]

JavaX fragment (include)

1  
static void tok_juxtaposeCalls(L<S> tok) {
2  
  for (int i = 1; i+4 < l(tok); i += 2)
3  
    if (eqGet(tok, i+4, ";")
4  
      && isIdentifier(tok.get(i))
5  
      && (isIdentifier(tok.get(i+2)) || isQuoted(tok.get(i+2)))) {
6  
      tok.set(i+2, "(" + tok.get(i+2) + ")");
7  
      reTok(tok, i+2);
8  
    }
9  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1008966
Snippet name: tok_juxtaposeCalls - experimental [and wrong]
Eternal ID of this version: #1008966/4
Text MD5: c22ffbd78fc022f0b37049dbe6218d23
Author: stefan
Category: javax / preprocessing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-06-20 05:00:08
Source code size: 297 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 433 / 477
Version history: 3 change(s)
Referenced in: [show references]