Joos1W Compiler Framework
All Classes Functions Typedefs Pages
ast::Stmt Class Referenceabstract

Base class for all statements. More...

#include <AstNode.h>

Inheritance diagram for ast::Stmt:

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 ()
 
- Public Member Functions inherited from ast::AstNode
 AstNode (const AstNode &)=delete
 
 AstNode (AstNode &&)=delete
 
AstNodeoperator= (const AstNode &)=delete
 
AstNodeoperator= (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 Protected Member Functions inherited from ast::AstNode
static std::string indent (int indentation)
 Get a string of spaces for indentation. More...
 

Detailed Description

Base class for all statements.

Definition at line 204 of file AstNode.h.


The documentation for this class was generated from the following file: