enum Cryox::TokenType

Defined in:

cryox/token_type.cr

Enum 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
AND = 22

Keywords.

CLASS = 23
ELSE = 24
FALSE = 25
FUN = 26
FOR = 27
IF = 28
NIL = 29
OR = 30
PRINT = 31
RETURN = 32
SUPER = 33
THIS = 34
TRUE = 35
VAR = 36
WHILE = 37
EOF = 38

Instance Method Summary

Instance Method Detail

def and? #

[View source]
def bang? #

[View source]
def bang_equal? #

[View source]
def class? #

[View source]
def comma? #

[View source]
def dot? #

[View source]
def else? #

[View source]
def eof? #

[View source]
def equal? #

[View source]
def equal_equal? #

[View source]
def false? #

[View source]
def for? #

[View source]
def fun? #

[View source]
def greater? #

[View source]
def greater_equal? #

[View source]
def identifier? #

[View source]
def if? #

[View source]
def left_brace? #

[View source]
def left_paren? #

[View source]
def less? #

[View source]
def less_equal? #

[View source]
def minus? #

[View source]
def nil? #

[View source]
def number? #

[View source]
def or? #

[View source]
def plus? #

[View source]
def print? #

[View source]
def return? #

[View source]
def right_brace? #

[View source]
def right_paren? #

[View source]
def semicolon? #

[View source]
def slash? #

[View source]
def star? #

[View source]
def string? #

[View source]
def super? #

[View source]
def this? #

[View source]
def true? #

[View source]
def var? #

[View source]
def while? #

[View source]