Libraryless. Click here for Pure Java version (53L/1K).
1 | static int curlyLevel(S token) { |
2 | if (eq(token, "{")) ret 1; |
3 | if (eq(token, "}")) ret -1; |
4 | ret 0; |
5 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034496 |
Snippet name: | curlyLevel |
Eternal ID of this version: | #1034496/3 |
Text MD5: | 0427735e0a04e046538c53f33b2e1171 |
Transpilation MD5: | 70f74840d39e0e19d494b89c2523ee08 |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-09 23:57:15 |
Source code size: | 108 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 140 / 211 |
Version history: | 2 change(s) |
Referenced in: | [show references] |