Warning: session_start(): open(/var/lib/php/sessions/sess_qao48v5k0k6tepanislqutej0v, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
curlyLevel [1034496]

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: 532 / 680
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)