Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
lit
main
Top Level Namespace
Lit
Debug
Environment
Expr
Assign
Binary
Grouping
Literal
Logical
Ternary
Unary
Variable
Visitor
Formatter
Interpreter
Lit
Parser
ParserError
REPL
RuntimeError
Scanner
Stmt
Expression
Let
Print
Visitor
Text
Token
TokenType
Value
Built with Crystal 1.9.2
2023-10-07 17:40:29 UTC
class
Lit::Parser
Lit::Parser
Reference
Object
Defined in:
lit/parser.cr
Constructors
.new
(tokens : Array(::Lit::Token))
Class Method Summary
.parse
(tokens)
Instance Method Summary
#current
: Int32
#parse
: Array(Stmt)
#tokens
: Array(Token)
Constructor Detail
def self.
new
(tokens : Array(
::Lit::Token
))
#
[
View source
]
Class Method Detail
def self.
parse
(tokens)
#
[
View source
]
Instance Method Detail
def
current
: Int32
#
[
View source
]
def
parse
: Array(
Stmt
)
#
[
View source
]
def
tokens
: Array(
Token
)
#
[
View source
]