MysoreScript
|
Block of statements. More...
#include <ast.hh>
Public Member Functions | |
void | interpret (Interpreter::Context &c) |
Interprets each of the statements in turn. More... | |
void | compile (Compiler::Context &c) |
Compiles each statement in turn. More... | |
void | collectVarUses (std::unordered_set< std::string > &decls, std::unordered_set< std::string > &uses) |
Visits each statement to collect its variable uses and definitions. More... | |
void Statements::collectVarUses | ( | std::unordered_set< std::string > & | decls, |
std::unordered_set< std::string > & | uses | ||
) |
Visits each statement to collect its variable uses and definitions.
Definition at line 389 of file interpreter.cc.
void Statements::compile | ( | Compiler::Context & | c | ) |
Compiles each statement in turn.
Definition at line 493 of file compiler.cc.
void Statements::interpret | ( | Interpreter::Context & | c | ) |
Interprets each of the statements in turn.
If the context is marked as returning, then aborts execution and returns.
Definition at line 376 of file interpreter.cc.