|
mjplusplus
v0.4.1
|
#include <Statement.hpp>
Public Types | |
| enum | Type { TYPE_SINGLE, TYPE_BLOCK, TYPE_IF } |
Public Member Functions | |
| virtual Type | getType () const |
| virtual bool | analyze (semantic::SemanticAnalysis &sa, shptr< semantic::symbol::SymbolTable > symboltable) const =0 |
| analyze a statement for semantic correctness, and recursivly analyze its children More... | |
| virtual unsigned int | countVariableDeclarations () const |
| virtual void | accept (ASTVisitor &visitor) const |
| virtual int | setVariablePositions (int) const |
Public Member Functions inherited from ast::Node | |
| virtual void | toString (std::ostream &out, unsigned int indent, bool special=false) const =0 |
|
virtual |
Reimplemented from ast::Node.
Reimplemented in ast::stmt::LVDStatement, ast::stmt::Block, ast::stmt::IfStatement, ast::stmt::WhileStatement, ast::stmt::ReturnStatement, and ast::stmt::ExpressionStatement.
|
pure virtual |
analyze a statement for semantic correctness, and recursivly analyze its children
Implemented in ast::stmt::LVDStatement, ast::stmt::Block, ast::stmt::IfStatement, ast::stmt::ReturnStatement, ast::stmt::WhileStatement, and ast::stmt::ExpressionStatement.
|
virtual |
Reimplemented in ast::stmt::LVDStatement, ast::stmt::Block, ast::stmt::IfStatement, and ast::stmt::WhileStatement.
|
virtual |
Reimplemented in ast::stmt::Block, and ast::stmt::IfStatement.
|
virtual |
Reimplemented in ast::stmt::LVDStatement, ast::stmt::Block, ast::stmt::IfStatement, and ast::stmt::WhileStatement.
1.8.8