19 using System.Collections.Generic;
23 using ErrorManagement;
26 #region ArithmeticOperator
100 : base(operand1, operand2, location) {
115 return v.Visit(
this, o);
122 return this.op.ToString();
Encapsulates a binary expression of our programming language.
Abstract class encapsulate a programming language expression.
override Object Accept(Visitor v, Object o)
Accept method of a concrete visitor.
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.
Encapsulates arithmetic binary expressions.
ArithmeticOperator
Arithmetic binary operators
ArithmeticExpression(Expression operand1, Expression operand2, ArithmeticOperator op, Location location)
Constructor de la clase ArithmeticExpression
Location location
Location: Encapsulates in one object the line, column and filename
ArithmeticOperator Operator
Gets the operator of the binary expression
override string ToString()