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

9
LINES

< > BotCompany Repo | #1022749 - tok_whileGreaterThan

JavaX fragment (include)

svoid tok_whileGreaterThan(LS tok) {
  int i = -1;
  while ((i = jfind(tok, "while >= <int> (")) >= 0) {
    int iOpening = indexOf(tok, "(", i);
    int iClosing = findEndOfBracketPart(tok, iOpening)-1;
    tokSet_reTok(tok, iClosing, ") >= 0)");
    replaceTokens_reTok(tok, i+2, iOpening+1, "((");
  }
}

download  show line numbers  debug dex   

Travelled to 3 computer(s): cfunsshuasjs, mqqgnosmbjvj, tvejysmllsmz

No comments. add comment

Snippet ID: #1022749
Snippet name: tok_whileGreaterThan
Eternal ID of this version: #1022749/2
Text MD5: 27ad42b24214435b2c10f75f2d27a73f
Author: stefan
Category: javax / transpiling
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-05 12:46:53
Source code size: 314 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 71 / 79
Version history: 1 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1022749 & http://1022749.tinybrain.de