-
Notifications
You must be signed in to change notification settings - Fork 0
/
tokens.json
44 lines (44 loc) · 990 Bytes
/
tokens.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[
["RWPRINT", "print"],
["RWCHAR", "char"],
["RWINT", "int"],
["RWFLOAT", "float"],
["RWSTRING", "string"],
["RWRETURN", "return"],
["RWEXTERN", "extern"],
["FLOAT", "([0-9]*\\.[0-9]*|[0-9]+(f|F))"],
["INTEGER", "[0-9][0-9]*"],
["STRING", "\\\".*[^\\\\]\\\""],
["CHARACTER", "\\'.\\'"],
["SEMICOLON", ";"],
["COLON", "\\:"],
["IDENTIFIER", "[a-zA-Z_1-9][a-zA-Z_1-9]*\\s?"],
["COMMENT", "\\\\\\*.*\\*\\\\"],
["FSLASH", "\\/"],
["BSLASH", "\\\\"],
["BANG", "\\!"],
["AT", "\\@"],
["HASH", "\\#"],
["DOLLAR", "\\$"],
["PERCENT", "\\%"],
["CARET", "\\^"],
["AMPERSAND", "\\&"],
["ASTERISK", "\\*"],
["LPARAN", "\\("],
["RPARAN", "\\)"],
["DASH", "\\-"],
["PLUS", "\\+"],
["UNDERSCORE", "\\_"],
["EQUAL", "\\="],
["LBRACE", "\\{"],
["RBRACE", "\\}"],
["LBACKET", "\\["],
["RBRACKET", "\\]"],
["PIPE", "\\|"],
["TILDE", "\\~"],
["GTHAN", "\\>"],
["LTHAN", "\\<"],
["COMMA", "\\,"],
["PERIOD", "\\."],
["QUESTION", "\\?"]
]