MysoreScript
|
A while loop. More...
#include <ast.hh>
Protected Member Functions | |
void | interpret (Interpreter::Context &c) override |
Interpret the body as long as the condition remains true. More... | |
void | collectVarUses (std::unordered_set< std::string > &decls, std::unordered_set< std::string > &uses) override |
Collect the variables used and declared in the loop. More... | |
void | compile (Compiler::Context &c) override |
Compile the loop. More... | |
Additional Inherited Members |
|
inlineoverrideprotectedvirtual |
Collect the variables used and declared in the loop.
Implements AST::Statement.
|
overrideprotectedvirtual |
Compile the loop.
Reimplemented from AST::Statement.
Definition at line 554 of file compiler.cc.
|
overrideprotectedvirtual |
Interpret the body as long as the condition remains true.
Implements AST::Statement.
Definition at line 641 of file interpreter.cc.