18 using System.Collections.Generic;
22 using ErrorManagement;
51 private List<MoveStatement> initDo;
56 private List<ThetaStatement> beforeBody;
67 get {
return condition; }
68 set { condition = value; }
76 get {
return doStatement; }
82 public List<MoveStatement>
InitDo
84 get {
return this.initDo; }
85 set { this.initDo = value; }
93 get {
return this.beforeBody; }
94 set { this.beforeBody = value; }
110 this.condition = cond;
111 this.doStatement = statements;
112 this.beforeBody =
new List<ThetaStatement>();
113 this.initDo =
new List<MoveStatement>();
128 return v.Visit(
this, o);
Statement Statements
Gets the block executed when the condition is true.
Abstract class encapsulate a programming language expression.
List< ThetaStatement > BeforeBody
Gets or sets the statements before do body.
Encapsulates a Do statement of our programming language.
List< MoveStatement > InitDo
Gets or sets the statements to use at the init of the do loop.
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.
DoStatement(Statement statements, Expression cond, Location location)
Constructor of DoStatement
Expression Condition
Gets the condition expression of Do Statement.
Location location
Location: Encapsulates in one object the line, column and filename
override Object Accept(Visitor v, Object o)
Accept method of a concrete visitor.