18 using System.Collections.Generic;
22 using ErrorManagement;
41 private List<Expression> expressions;
52 get {
return this.expressions.Count; }
66 this.expressions =
new List<Expression>();
71 #region AddExpression()
79 this.expressions.Add(exp);
84 #region GetExpressionElement()
93 return this.expressions[index];
98 #region SetExpressionElement()
106 this.expressions[index] = exp;
121 return v.Visit(
this, o);
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.
override Object Accept(Visitor v, Object o)
Accept method of a concrete visitor.
void SetExpressionElement(int index, SingleIdentifierExpression exp)
Updates the value of the element stored in the specified index.
void AddExpression(Expression exp)
Add a new expression.
Encapsulates a identifier expression of our programming language.
int ExpressionCount
Gets the number of expressions.
Encapsulates a set of expressions.
Expression GetExpressionElement(int index)
Gets the element stored in the specified index.
Location location
Location: Encapsulates in one object the line, column and filename
CompoundExpression(Location location)
Constructor of CompoundExpression