18 using System.Collections.Generic;
22 using ErrorManagement;
56 get {
return operand1; }
57 set { operand1 = value; }
65 get {
return operand2; }
66 set { operand2 = value; }
84 this.operand1 = operand1;
85 this.operand2 = operand2;
Encapsulates a binary expression of our programming language.
Abstract class encapsulate a programming language expression.
This class encapsulates a location in a specific file. Implements an Inmutable pattern. So it can be used in any context, that is his internal fields never change.
BinaryExpression(Expression operand1, Expression operand2, Location location)
Constructor of BinaryExpression
Expression SecondOperand
Gets the second operand of the binary expression
Location location
Location: Encapsulates in one object the line, column and filename
Expression FirstOperand
Gets the first operand of the binary expression