enum Lit::TokenType

Defined in:

lit/token_type.cr

Enum Members

LEFT_PAREN = 0
RIGHT_PAREN = 1
LEFT_BRACKET = 2
RIGHT_BRACKET = 3
LEFT_BRACE = 4
RIGHT_BRACE = 5
COMMA = 6
DOT = 7
COLON = 8
SEMICOLON = 9
PLUS = 10

Math

MINUS = 11
SLASH = 12
STAR = 13
STAR_STAR = 14
PERCENT = 15
EQUAL = 16
EQUAL_EQUAL = 17
GREATER = 18
GREATER_EQUAL = 19
LESS = 20
LESS_EQUAL = 21
BAR = 22
BANG = 23
BANG_EQUAL = 24
QUESTION = 25
PIPE_OPERATOR = 26
NUMBER = 27

Literals

STRING = 28
IDENTIFIER = 29
AND = 30

Keywords

ELSE = 31
FALSE = 32
FN = 33
IF = 34
LET = 35
NIL = 36
OR = 37
PRINT = 38
PUTS = 39
RETURN = 40
TRUE = 41
WHILE = 42
EOF = 43

Instance Method Summary

Instance Method Detail

def and? #

[View source]
def bang? #

[View source]
def bang_equal? #

[View source]
def bar? #

[View source]
def colon? #

[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 fn? #

[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_bracket? #

[View source]
def left_paren? #

[View source]
def less? #

[View source]
def less_equal? #

[View source]
def let? #

[View source]
def minus? #

[View source]
def nil? #

[View source]
def number? #

[View source]
def or? #

[View source]
def percent? #

[View source]
def pipe_operator? #

[View source]
def plus? #

[View source]
def print? #

[View source]
def puts? #

[View source]
def question? #

[View source]
def return? #

[View source]
def right_brace? #

[View source]
def right_bracket? #

[View source]
def right_paren? #

[View source]
def semicolon? #

[View source]
def slash? #

[View source]
def star? #

[View source]
def star_star? #

[View source]
def string? #

[View source]
def true? #

[View source]
def while? #

[View source]