![]() |
Zen
A cross-platform functional programming language
|
Concrete class for AST Node representing a binary query expression. More...
#include <Ast.hpp>
Public Member Functions | |
| QueryBinaryExpr (const QualifiedType &type, const Expr &lhs, const z::string &op, const Expr &rhs) | |
| Default constructor. | |
Private Member Functions | |
| virtual void | visit (Expr::Visitor &visitor) const |
| Abstract visitor function. | |
Concrete class for AST Node representing a binary query expression.
For example:
local y = { @name::(true) && @age::((val > 25) && (val < 35))};
Here, the && between the @name and @age parts is the operator of a binary query expression
| QueryBinaryExpr | ( | 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 |
| void visit | ( | Expr::Visitor & | visitor | ) | const [private, virtual] |