MysoreScript
Public Member Functions | List of all members
AST::Statements Struct Reference

Block of statements. More...

#include <ast.hh>

Inheritance diagram for AST::Statements:
Inheritance graph
[legend]
Collaboration diagram for AST::Statements:
Collaboration graph
[legend]

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...
 

Detailed Description

Block of statements.

Definition at line 98 of file ast.hh.

Member Function Documentation

§ collectVarUses()

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.

§ compile()

void Statements::compile ( Compiler::Context c)

Compiles each statement in turn.

Definition at line 493 of file compiler.cc.

§ interpret()

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.


The documentation for this struct was generated from the following files: