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

7
LINES

< > BotCompany Repo | #1012542 // tok_classifyJavaToken

JavaX fragment (include)

1  
static S tok_classifyJavaToken(S t) {
2  
  if (isJavaKeyword(t)) ret "<keyword>";
3  
  if (isIdentifier(t)) ret "<id>";
4  
  if (isInteger(t)) ret "<int>";
5  
  if (isQuoted(t)) ret "<string>";
6  
  ret t;
7  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1012542
Snippet name: tok_classifyJavaToken
Eternal ID of this version: #1012542/2
Text MD5: e7e40d37abd2cc0ce80f0337fc36ddf9
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-06 23:10:55
Source code size: 198 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 320 / 336
Version history: 1 change(s)
Referenced in: [show references]