Zen
A cross-platform functional programming language

BinaryExpr Class Reference

Base class for all binary expression AST nodes. More...

#include <Ast.hpp>

Inheritance diagram for BinaryExpr:
Expr Node BinaryOpExpr QueryBinaryExpr

List of all members.

Public Member Functions

 BinaryExpr (const QualifiedType &type, const Expr &lhs, const z::string &op, const Expr &rhs)
 Default constructor.
const ExprgetLhs () const
 Returns the LHS of the expression.
const z::stringgetOp () const
 Returns the operator of the expression.
const ExprgetRhs () 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.

Detailed Description

Base class for all binary expression AST nodes.


Constructor & Destructor Documentation

BinaryExpr ( const QualifiedType type,
const Expr lhs,
const z::string op,
const Expr rhs 
) [inline]

Default constructor.

Parameters:
typeExpression type
lhsThe LHS of the expression
opThe operator of the expression
rhsThe RHS of the expression

Member Function Documentation

const Expr& getLhs ( ) const [inline]

Returns the LHS of the expression.

Returns:
The LHS expression
const z::string& getOp ( ) const [inline]

Returns the operator of the expression.

Returns:
The operator
const Expr& getRhs ( ) const [inline]

Returns the RHS of the expression.

Returns:
The RHS expression

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines