enum Token::Type

Defined in:

scanner/token.cr

Enum Members

Comment = 0

Special

WhiteSpace = 1
LeftParen = 2

Single-character tokens.

RightParen = 3
LeftBrace = 4
RightBrace = 5
Comma = 6
Dot = 7
Minus = 8
Plus = 9
SemiColon = 10
Slash = 11
Star = 12
Bang = 13

One or two character tokens.

BangEqual = 14
Equal = 15
EqualEqual = 16
Greater = 17
GreaterEqual = 18
Less = 19
LessEqual = 20
Identifier = 21

Literals.

String = 22
Number = 23
And = 24

Keywords.

Class = 25
Else = 26
False = 27
Fun = 28
For = 29
If = 30
Nil = 31
Or = 32
Print = 33
Return = 34
Super = 35
This = 36
True = 37
Var = 38
While = 39
Eof = 40

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 comment? #

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

[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]
def white_space? #

[View source]