1 | static int tok_findTokenSkippingCurlyBrackets(LS tok, int i, S t) { |
2 | while (i < l(tok)) { |
3 | if (eqGet(tok, i, t)) ret i; |
4 | if (eqGet(tok, i, "{")) |
5 | i = findEndOfBracketPart(tok, i)+1; |
6 | else |
7 | i += 2; |
8 | } |
9 | ret -1; |
10 | } |
Began life as a copy of #1017567
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: | #1022752 |
Snippet name: | tok_findTokenSkippingCurlyBrackets |
Eternal ID of this version: | #1022752/1 |
Text MD5: | 53a699a7c7b3bc1252ba3c5cbad6bd1d |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-04-05 12:55:42 |
Source code size: | 241 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 279 / 316 |
Referenced in: | [show references] |