Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
tesh
main
Tesh
CLI
ExportStatement
Expression
ExpressionStatement
Identifier
Lexer
LexerError
Node
ParseError
Parser
Program
REPL
ReturnStatement
Statement
Token
Built with Crystal 1.9.2
2023-10-07 10:27:38 UTC
class
Tesh::Lexer
Tesh::Lexer
Reference
Object
Defined in:
tesh/lexer.cr
Constructors
.new
(input : String)
Instance Method Summary
#is_digit?
(str)
#is_letter?
(str)
#next_token
#peek_char
#read_char
#read_digit
#read_identifier
#skip_whitespace
Constructor Detail
def self.
new
(input : String)
#
[
View source
]
Instance Method Detail
def
is_digit?
(str)
#
[
View source
]
def
is_letter?
(str)
#
[
View source
]
def
next_token
#
[
View source
]
def
peek_char
#
[
View source
]
def
read_char
#
[
View source
]
def
read_digit
#
[
View source
]
def
read_identifier
#
[
View source
]
def
skip_whitespace
#
[
View source
]