Joos1W Compiler Framework
|
Base class for all statements. More...
#include <AstNode.h>
Public Member Functions | |
virtual utils::Generator< AstNode const * > | children () const override |
By default, returns an empty generator for the statement. | |
virtual utils::Generator< Expr const * > | exprs () const =0 |
Returns all the expressions in the statement. | |
utils::Generator< Expr * > | mut_exprs () |
![]() | |
AstNode (const AstNode &)=delete | |
AstNode (AstNode &&)=delete | |
AstNode & | operator= (const AstNode &)=delete |
AstNode & | operator= (AstNode &&)=delete |
std::ostream & | printDot (std::ostream &os) const |
virtual std::ostream & | print (std::ostream &os, int indentation=0) const =0 |
virtual int | printDotNode (DotPrinter &dp) const =0 |
void | dump () const |
utils::Generator< AstNode * > | mut_children () |
Returns a generator for the mutable children of this node. | |
Additional Inherited Members | |
![]() | |
static std::string | indent (int indentation) |
Get a string of spaces for indentation. More... | |