class Ven::Suite::Context::Compiler
- Ven::Suite::Context::Compiler
- Reference
- Object
Overview
The context for a Compiler
.
It may use context to determine whether a symbol was defined and whether it is global or local, as well as to manage compile-time traceback.
Defined in:
ven/suite/context.crConstructors
Instance Method Summary
-
#bound(symbol : String)
Declares a bound symbol in the localmost scope.
-
#bound?(symbol : String)
If symbol is declared and is bound, returns its nest.
-
#child(&)
Evaluates the block inside a child scope.
-
#scopes : Array(Scope)
The scope hierarchy.
-
#trace(tag : QTag, name : String, &)
Adds a trace for the block.
-
#traces : Array(Ven::Suite::Trace)
An array of traces, which together will form the traceback.
Constructor Detail
Instance Method Detail
If symbol is declared and is bound, returns its nest. Otherwise, returns nil.
Evaluates the block inside a child scope. Passes the depth of the child scope to the block.
The scope hierarchy. The rightmost scope is the localmost, and the leftmost - the globalmost.
Adds a trace for the block. This trace will point to the line set by tag, and will be displayed under the name.