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

5
LINES

< > BotCompany Repo | #1034496 // curlyLevel

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (53L/1K).

static int curlyLevel(S token) {
  if (eq(token, "{")) ret 1;
  if (eq(token, "}")) ret -1;
  ret 0;
}

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: 68 / 111
Version history: 2 change(s)
Referenced in: [show references]