19 using System.Collections.Generic;
23 using ErrorManagement;
27 #region LogicalOperator
90 : base(operand1, operand2, location)
107 return v.Visit(
this, o);
113 return this.op.ToString();
Encapsulates a binary expression of our programming language.
Abstract class encapsulate a programming language expression.
Encapsulates a logical binary 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.
LogicalExpression(Expression operand1, Expression operand2, LogicalOperator op, Location location)
Constructor of LogicalExpression
LogicalOperator
Logical binary operators
Location location
Location: Encapsulates in one object the line, column and filename
LogicalOperator Operator
Gets the operator of the binary expression
override string ToString()
override Object Accept(Visitor v, Object o)
Accept method of a concrete visitor.