18 using System.Collections.Generic;
22 using ErrorManagement;
62 get {
return this.decl; }
70 get {
return this.expression; }
78 get {
return this.block; }
99 this.expression = expr;
115 return v.Visit(
this, o);
Expression ForeachExp
Gets the expression of the foreach statement.
Abstract class encapsulate a programming language expression.
Statement ForeachBlock
Gets the block of Foreach statement.
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.
Abstract class represents a programming language statement.
ForeachStatement(string type, SingleIdentifierExpression id, Expression expr, Statement stats, Location location)
Constructor of ForeachStatement
Encapsulates a identifier expression of our programming language.
override Object Accept(Visitor v, Object o)
Accept method of a concrete visitor.
Encapsulates a declaration of a concrete type.
Encapsulates a declaration.
Location location
Location: Encapsulates in one object the line, column and filename
Declaration ForEachDeclaration
Gets the declaration of the foreach statement.
Encapsulates a Foreach statement of our programming languages.