Zen
A cross-platform functional programming language

PrefixOpExpr Class Reference

AST Node for all prefix operators. More...

#include <Ast.hpp>

Inheritance diagram for PrefixOpExpr:
UnaryOpExpr Expr Node

List of all members.

Public Member Functions

 PrefixOpExpr (const QualifiedType &type, const z::string &op, const Expr &rhs)
 Default constructor.

Private Member Functions

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

Detailed Description

AST Node for all prefix operators.

For example:

        local y = ++x;

Constructor & Destructor Documentation

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

Default constructor.

Parameters:
typeExpression type
opThe operator of the expression
rhsThe operand expression

Member Function Documentation

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

Abstract visitor function.

Parameters:
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