![]() |
Zen
A cross-platform functional programming language
|
Base class for all binary expression AST nodes. More...
#include <Ast.hpp>
Public Member Functions | |
| BinaryExpr (const QualifiedType &type, const Expr &lhs, const z::string &op, const Expr &rhs) | |
| Default constructor. | |
| const Expr & | getLhs () const |
| Returns the LHS of the expression. | |
| const z::string & | getOp () const |
| Returns the operator of the expression. | |
| const Expr & | getRhs () const |
| Returns the RHS of the expression. | |
Private Attributes | |
| const Expr & | _lhs |
| The LHS expression. | |
| const z::string | _op |
| The operator. | |
| const Expr & | _rhs |
| The RHS expression. | |
Base class for all binary expression AST nodes.
| BinaryExpr | ( | const QualifiedType & | type, |
| const Expr & | lhs, | ||
| const z::string & | op, | ||
| const Expr & | rhs | ||
| ) | [inline] |
Default constructor.
| type | Expression type |
| lhs | The LHS of the expression |
| op | The operator of the expression |
| rhs | The RHS of the expression |
| const Expr& getLhs | ( | ) | const [inline] |
Returns the LHS of the expression.
| const z::string& getOp | ( | ) | const [inline] |
Returns the operator of the expression.
| const Expr& getRhs | ( | ) | const [inline] |
Returns the RHS of the expression.