A cross-platform functional programming language

OrderedExpr Class Reference

AST Node for an ordered expression. More...

#include <Ast.hpp>

Inheritance diagram for OrderedExpr:
Expr Node

List of all members.

Public Member Functions

 OrderedExpr (const QualifiedType &type, const Expr &expr)
 Default constructor.
const ExprgetExpr () const
 Returns the expression.

Private Member Functions

virtual void visit (Visitor &visitor) const
 Abstract visitor function.

Private Attributes

const Expr_expr
 The expression.

Detailed Description

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);

Constructor & Destructor Documentation

OrderedExpr ( const QualifiedType type,
const Expr expr 
) [inline]

Default constructor.

typeExpression type
exprThe expression

Member Function Documentation

const Expr& getExpr ( ) const [inline]

Returns the expression.

The expression
void visit ( Visitor visitor) const [private, virtual]

Abstract visitor function.

visitorThe visitor object.

Implements Expr.

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