class Mallard::Lexer

Defined in:

lexer.cr

Constant Summary

KEYWORDS = {"let" => :LET, "atom" => :ATOM, "data" => :DATA, "match" => :MATCH, "true" => :TRUE, "false" => :FALSE, "nil" => :NIL}

the keywords reserved in the language:

OPERATORS = {"!=" => :NOT_EQUAL, "==" => :EQUAL, "||" => :BINARY_OR, "&&" => :BINARY_AND, "<=" => :LESS_OR_EQ, ">=" => :GREATOR_OR_EQ, "=" => :ASSIGNMENT}

Instance Method Summary

Instance Method Detail

def tokenize(code : String) #

[View source]