1 | svoid tok_whileGreaterThan(LS tok) { |
2 | int i = -1; |
3 | while ((i = jfind(tok, "while >= <int> (")) >= 0) { |
4 | int iOpening = indexOf(tok, "(", i); |
5 | int iClosing = findEndOfBracketPart(tok, iOpening)-1; |
6 | tokSet_reTok(tok, iClosing, ") >= 0)"); |
7 | replaceTokens_reTok(tok, i+2, iOpening+1, "(("); |
8 | } |
9 | } |
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: | #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: | 372 / 412 |
Version history: | 1 change(s) |
Referenced in: | [show references] |