enum Taro::Compiler::Token::Type

Defined in:

compiler/lexer/token.cr

Enum Members

Integer = 0

Literals

Float = 1
String = 2
Char = 3
True = 4
False = 5
Identifier = 6
IdentifierU = 7
Module = 8

Keywords

Def = 9
Val = 10
Var = 11
If = 12
Else = 13
Record = 14
Public = 15
Const = 16
Ref = 17
Enum = 18
Plus = 19

Operators

Minus = 20
Asterisk = 21
Pow = 22
Slash = 23
Modulo = 24
Assign = 25
Not = 26
Less = 27
LessEqual = 28
Greater = 29
GreaterEqual = 30
NotEqual = 31
Equal = 32
AndAnd = 33
OrOr = 34
Ampersand = 35
Pipe = 36
LArrow = 37
RArrow = 38
LParen = 39

Separators

RParen = 40
LCurly = 41
RCurly = 42
LSquare = 43
RSquare = 44
Comma = 45
Point = 46
Colon = 47
Semi = 48
Comment = 49

Misc

NewLine = 50
Whitespace = 51
Eof = 52
Unknown = 53

Class Method Summary

Instance Method Summary

Class Method Detail

def self.binary_operators #

[View source]
def self.delimiters #

[View source]
def self.keyword? #

[View source]
def self.keyword_map #

[View source]
def self.keywords #

[View source]
def self.unary_operators #

[View source]
def self.whitespace #

[View source]

Instance Method Detail

def ampersand? #

[View source]
def and_and? #

[View source]
def assign? #

[View source]
def asterisk? #

[View source]
def binary_operator? #

[View source]
def char? #

[View source]
def colon? #

[View source]
def comma? #

[View source]
def comment? #

[View source]
def const? #

[View source]
def def? #

[View source]
def delimiter? #

[View source]
def else? #

[View source]
def enum? #

[View source]
def eof? #

[View source]
def equal? #

[View source]
def false? #

[View source]
def float? #

[View source]
def greater? #

[View source]
def greater_equal? #

[View source]
def identifier? #

[View source]
def identifier_u? #

[View source]
def if? #

[View source]
def integer? #

[View source]
def l_arrow? #

[View source]
def l_curly? #

[View source]
def l_paren? #

[View source]
def l_square? #

[View source]
def less? #

[View source]
def less_equal? #

[View source]
def minus? #

[View source]
def module? #

[View source]
def modulo? #

[View source]
def new_line? #

[View source]
def not? #

[View source]
def not_equal? #

[View source]
def operator? #

[View source]
def or_or? #

[View source]
def pipe? #

[View source]
def plus? #

[View source]
def point? #

[View source]
def pow? #

[View source]
def public? #

[View source]
def r_arrow? #

[View source]
def r_curly? #

[View source]
def r_paren? #

[View source]
def r_square? #

[View source]
def record? #

[View source]
def ref? #

[View source]
def semi? #

[View source]
def slash? #

[View source]
def string? #

[View source]
def true? #

[View source]
def unary_operator? #

[View source]
def unknown? #

[View source]
def val? #

[View source]
def var? #

[View source]
def whitespace? #

[View source]