Zen
A cross-platform functional programming language
|
AST Node representing an expression statement. More...
#include <Ast.hpp>
Public Member Functions | |
ExprStatement (const Ast::Expr &expr) | |
Default constructor. | |
const Expr & | getExpr () const |
Returns the statement's expression. | |
Private Member Functions | |
virtual void | visit (Statement::Visitor &visitor) const |
Abstract visitor function. | |
Private Attributes | |
const Ast::Expr & | _expr |
The statement's expression. |
AST Node representing an expression statement.
For example:
a + b;
Here, \'a + b\' is an expression, and the entire line is a statement containing that expression.
ExprStatement | ( | const Ast::Expr & | expr | ) | [inline] |
Default constructor.
expr | The expression for this statement |
const Expr& getExpr | ( | ) | const [inline] |
Returns the statement's expression.
void visit | ( | Statement::Visitor & | visitor | ) | const [private, virtual] |