enum Funk::TokenType

Defined in:

funk/syntax/token_type.cr

Enum Members

Numeric = 0

Literals

Boolean = 1
String = 2
Identifier = 3
Def = 4

Keywords

If = 5
ElsIf = 6
Else = 7
Unless = 8
While = 9
Until = 10
Class = 11
Return = 12
Break = 13
Continue = 14
Lambda = 15
Null = 16
Plus = 17

Operators

Minus = 18
Multiply = 19
Divide = 20
Modulus = 21
Power = 22
Assignment = 23
Bang = 24
Equal = 25

Comparison

NotEqual = 26
LessThan = 27
GreaterThan = 28
LessEqual = 29
GreaterEqual = 30
AND = 31
OR = 32
PlusAssign = 33

Operator assignment

MinusAssign = 34
MultiplyAssign = 35
DivideAssign = 36
ModulusAssign = 37
PowerAssign = 38
LeftCurly = 39

Structure

RightCurly = 40
LeftParen = 41
RightParen = 42
Comment = 43
Point = 44
Comma = 45
EOF = 46

Misc

Unknown = 47

Instance Method Summary

Instance Method Detail

def and? #

[View source]
def assignment? #

[View source]
def bang? #

[View source]
def boolean? #

[View source]
def break? #

[View source]
def class? #

[View source]
def comma? #

[View source]
def comment? #

[View source]
def continue? #

[View source]
def def? #

[View source]
def divide? #

[View source]
def divide_assign? #

[View source]
def els_if? #

[View source]
def else? #

[View source]
def eof? #

[View source]
def equal? #

[View source]
def greater_equal? #

[View source]
def greater_than? #

[View source]
def identifier? #

[View source]
def if? #

[View source]
def lambda? #

[View source]
def left_curly? #

[View source]
def left_paren? #

[View source]
def less_equal? #

[View source]
def less_than? #

[View source]
def minus? #

[View source]
def minus_assign? #

[View source]
def modulus? #

[View source]
def modulus_assign? #

[View source]
def multiply? #

[View source]
def multiply_assign? #

[View source]
def not_equal? #

[View source]
def null? #

[View source]
def numeric? #

[View source]
def or? #

[View source]
def plus? #

[View source]
def plus_assign? #

[View source]
def point? #

[View source]
def power? #

[View source]
def power_assign? #

[View source]
def return? #

[View source]
def right_curly? #

[View source]
def right_paren? #

[View source]
def string? #

[View source]
def unknown? #

[View source]
def unless? #

[View source]
def until? #

[View source]
def while? #

[View source]