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::Environment
Lit::Environment
Reference
Object
Defined in:
lit/environment.cr
Constructors
.new
(enclosing : Environment | Nil =
nil
)
Instance Method Summary
#assign
(name, value) : Nil
#define
(name, value)
#get
(name : Token)
#values
: Hash(String, Bool | Float64 | String | Nil)
Constructor Detail
def self.
new
(enclosing :
Environment
| Nil =
nil
)
#
[
View source
]
Instance Method Detail
def
assign
(name, value) : Nil
#
[
View source
]
def
define
(name, value)
#
[
View source
]
def
get
(name :
Token
)
#
[
View source
]
def
values
: Hash(String, Bool | Float64 | String | Nil)
#
[
View source
]