// i = last C token of type // returns first C token of type static int tok_scanTypeBackwards(LS tok, int i) { if (i < 0) ret i; int level = 0; while (i > 0) { S t = tok.get(i); if (isIdentifier(t) && level == 0) ret i; if (eq(t, ">")) ++level; else if (eq(t, "<")) --level; i -= 2; } ret i; }
Began life as a copy of #1021797
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025153 |
Snippet name: | tok_scanTypeBackwards OLD version |
Eternal ID of this version: | #1025153/1 |
Text MD5: | eabce6ba6242a967146c765bb8617ce4 |
Author: | stefan |
Category: | javax / transpiling |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-09 22:32:21 |
Source code size: | 336 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 195 / 225 |
Referenced in: | -