class Tesh::Token

Defined in:

tesh/token.cr

Constant Summary

ASSIGN = "="
ASTERISK = "*"
BANG = "!"
COMMA = ","

Delimiters

ELSE = "ELSE"
EOF = "EOF"
EQ = "=="

Operators

EXPORT = "EXPORT"
FALSE = "FALSE"
FUNCTION = "FUNCTION"

Keywords

GT = ">"
IDENT = "IDENT"

Identifiers + Literals

IF = "IF"
ILLEGAL = "ILLEGAL"
INT = "INT"
KEYWORDS = {"function" => FUNCTION, "export" => EXPORT, "true" => TRUE, "false" => FALSE, "if" => IF, "else" => ELSE, "return" => RETURN}
LBRACE = "{"
LPAREN = "("
LT = "<"
MINUS = "-"
NOT_EQ = "!="
PLUS = "+"
RBRACE = "}"
RETURN = "RETURN"
RPAREN = ")"
SEMICOLON = ";"
SLASH = "/"
TRUE = "TRUE"

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(type : String, literal : Int32 | String) #

[View source]

Class Method Detail

def self.lookup_ident(ident) #

[View source]

Instance Method Detail

def data #

[View source]
def literal : Int32 | String #

[View source]
def type : String #

[View source]