BinaryExpr

The base class for every binary operator.

The copy method is mixed in here, not in any derived class. If a derived class has other nodes than lhs and rhs, then it has to have its own copy method which handles additional nodes.

Constructors

this
this(Expression lhs, Expression rhs, Token* optok)

Constructs a BinaryExpr object.

Members

Variables

lhs
Expression lhs;

Left-hand side expression.

optok
Token* optok;

The operator token.

rhs
Expression rhs;

Right-hand side expression.

Meta