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)

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

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: 423 / 467
Version history: 3 change(s)
Referenced in: [show references]