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::Expr::Literal
Lit::Expr::Literal
Lit::Expr
Reference
Object
Defined in:
lit/expr.cr
Constructors
.new
(value : Bool | Float64 | String | Nil)
Instance Method Summary
#accept
(visitor : Visitor)
#value
: Union(String | Float64 | Bool | Nil)
Instance methods inherited from class
Lit::Expr
accept(visitor : Visitor)
accept
Constructor Detail
def self.
new
(value : Bool | Float64 | String | Nil)
#
[
View source
]
Instance Method Detail
def
accept
(visitor :
Visitor
)
#
[
View source
]
def
value
: Union(String | Float64 | Bool | Nil)
#
[
View source
]