![]() |
Zen
A cross-platform functional programming language
|
Base class for all unary expression AST nodes. More...
#include <Ast.hpp>
Public Member Functions | |
| const z::string & | getOp () const |
| Returns the operator of the expression. | |
| const Expr & | getExpr () const |
| Returns the operand expression. | |
Protected Member Functions | |
| UnaryOpExpr (const QualifiedType &type, const z::string &op, const Expr &expr) | |
| Default constructor. | |
Private Attributes | |
| const z::string | _op |
| The operator. | |
| const Expr & | _expr |
| The operand expression. | |
Base class for all unary expression AST nodes.
| UnaryOpExpr | ( | const QualifiedType & | type, |
| const z::string & | op, | ||
| const Expr & | expr | ||
| ) | [inline, protected] |
Default constructor.
| type | Expression type |
| op | The operator of the expression |
| expr | The operand expression |
| const Expr& getExpr | ( | ) | const [inline] |
Returns the operand expression.
| const z::string& getOp | ( | ) | const [inline] |
Returns the operator of the expression.