Interface for binary expressions.
Binary are defined by a two operands (the left-hand side, or
LHS , and the right-hand side, or RHS )
and an operator. The order of the operands might be significant. In
such case, the LHS must be evaluated first.
This interface defines the methods for accessign the operands. The operator
is defined by the class of the concrete implementation (i.e. it is not
represented by any attribute). This allows for easy visitor-based
traversals of expressions.
author: Abel Muinho since: 1.0 |