![]() |
Zen
A cross-platform functional programming language
|
AST Node for an ordered expression. More...
#include <Ast.hpp>
Public Member Functions | |
| OrderedExpr (const QualifiedType &type, const Expr &expr) | |
| Default constructor. | |
| const Expr & | getExpr () const |
| Returns the expression. | |
Private Member Functions | |
| virtual void | visit (Visitor &visitor) const |
| Abstract visitor function. | |
Private Attributes | |
| const Expr & | _expr |
| The expression. | |
AST Node for an ordered expression.
Expressions with a different evaluation precedence set by brackets. For example, the + operator here:
local y = x * (y + z);
| OrderedExpr | ( | const QualifiedType & | type, |
| const Expr & | expr | ||
| ) | [inline] |
Default constructor.
| type | Expression type |
| expr | The expression |
| const Expr& getExpr | ( | ) | const [inline] |
Returns the expression.
| void visit | ( | Visitor & | visitor | ) | const [private, virtual] |