19 using System.Collections.Generic;
23 using ErrorManagement;
27 #region RelationalOperator
110 : base(operand1, operand2, location)
127 return v.Visit(
this, o);
135 return op.ToString();
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.
RelationalOperator Operator
Gets the operator of the binary expression
override string ToString()
RelationalOperator
Relational binary operators
Encapsulates a relational binary expression.
Location location
Location: Encapsulates in one object the line, column and filename
RelationalExpression(Expression operand1, Expression operand2, RelationalOperator op, Location location)
Constructor of RelationalExpression
override Object Accept(Visitor v, Object o)
Accept method of a concrete visitor.