enum Crylox::TokenType
Defined in:
crylox/token_type.crEnum Members
-
LEFT_PAREN =
0
-
Single-character tokens
-
RIGHT_PAREN =
1
-
LEFT_BRACE =
2
-
RIGHT_BRACE =
3
-
COMMA =
4
-
DOT =
5
-
MINUS =
6
-
PLUS =
7
-
SEMICOLON =
8
-
SLASH =
9
-
STAR =
10
-
BANG =
11
-
One or two character tokens
-
BANG_EQUAL =
12
-
EQUAL =
13
-
EQUAL_EQUAL =
14
-
GREATER =
15
-
GREATER_EQUAL =
16
-
LESS =
17
-
LESS_EQUAL =
18
-
IDENTIFIER =
19
-
Literals
-
STRING =
20
-
NUMBER =
21
-
COMMENT =
22
-
AND =
23
-
Keywords
-
CLASS =
24
-
ELSE =
25
-
FALSE =
26
-
FUN =
27
-
FOR =
28
-
IF =
29
-
NIL =
30
-
OR =
31
-
PRINT =
32
-
RETURN =
33
-
SUPER =
34
-
THIS =
35
-
TRUE =
36
-
VAR =
37
-
WHILE =
38
-
NAND =
39
-
Add-on keywords
-
NOR =
40
-
XOR =
41
-
XNOR =
42
-
BREAK =
43
-
NEXT =
44
-
MODULUS =
45
-
LAMBDA =
46
-
MINUS_GREATER =
47
-
PLUS_EQUAL =
48
-
MINUS_EQUAL =
49
-
SLASH_EQUAL =
50
-
STAR_EQUAL =
51
-
MOD_EQUAL =
52
-
ERROR =
53
-
EOF =
54
Instance Method Summary
- #and?
- #bang?
- #bang_equal?
- #break?
- #class?
- #comma?
- #comment?
- #dot?
- #else?
- #eof?
- #equal?
- #equal_equal?
- #error?
- #false?
- #for?
- #fun?
- #greater?
- #greater_equal?
- #identifier?
- #if?
- #lambda?
- #left_brace?
- #left_paren?
- #less?
- #less_equal?
- #minus?
- #minus_equal?
- #minus_greater?
- #mod_equal?
- #modulus?
- #nand?
- #next?
- #nil?
- #nor?
- #number?
- #or?
- #plus?
- #plus_equal?
- #print?
- #return?
- #right_brace?
- #right_paren?
- #semicolon?
- #slash?
- #slash_equal?
- #star?
- #star_equal?
- #string?
- #super?
- #this?
- #true?
- #var?
- #while?
- #xnor?
- #xor?