The StaDyn Programming Language
Source code documentation of StaDyn, a hybrid static and dynamic typing language.
|
Encapsulates a For statement of our programming languages. More...
Public Member Functions | |
ForStatement (List< Statement > init, Expression cond, List< Statement > iter, Statement statements, Location location) | |
Constructor of ForStatement More... | |
Statement | GetInitializerElement (int index) |
Gets the element stored in the specified index. More... | |
Statement | GetIteratorElement (int index) |
Gets the element stored in the specified index. More... | |
override Object | Accept (Visitor v, Object o) |
Accept method of a concrete visitor. More... | |
![]() | |
override object | AcceptOperation (AstOperation op, object arg) |
Dispatches expressions to the operation passed as argument. It provokes the execution of op.AcceptOperation(AstNode) with the parameter resolved polymorfically More... | |
![]() | |
override bool | Equals (object obj) |
AntLR compares Nodes with the class name. This is not correct for our purposes. More... | |
override int | GetHashCode () |
Properties | |
int | InitializerCount [get] |
Gets the number of initializer expressions of For statement. More... | |
Expression | Condition [get, set] |
Gets the condition expression of For Statement. More... | |
int | IteratorCount [get] |
Gets the number of iterator expression of For loop. More... | |
Statement | Statements [get] |
Gets the block executed while the condition is true. More... | |
List< MoveStatement > | AfterInit [get, set] |
Gets or sets the statements to use after initialization More... | |
List< MoveStatement > | AfterCondition [get, set] |
Gets or sets the statements after condition. More... | |
List< ThetaStatement > | BeforeCondition [get, set] |
Gets or sets the statements before condition. More... | |
Block | AuxInitializer [get] |
Gets the auxiliar block of variable declarations More... | |
![]() | |
Location | Location [get] |
Additional Inherited Members | |
![]() | |
Statement (Location location) | |
Protected constructor of Statement. More... | |
![]() | |
AstNode (Location location) | |
Protected constructor of NodeAst More... | |
![]() | |
Location | location |
Location: Encapsulates in one object the line, column and filename More... | |
Encapsulates a For statement of our programming languages.
Inheritance: Statement. Implements Composite pattern [Composite]. Implements Visitor pattern [Concrete Element].
Definition at line 34 of file ForStatement.cs.
AST.ForStatement.ForStatement | ( | List< Statement > | init, |
Expression | cond, | ||
List< Statement > | iter, | ||
Statement | statements, | ||
Location | location | ||
) |
Constructor of ForStatement
init | Inicialization of loop variables. |
cond | Condition of For loop. Could be null. |
iter | Iterator expression of For loop. |
statements | Block executed in the For loop. |
fileName | File name. |
lineNumber | Line number. |
columnNumber | Column number. |
Definition at line 164 of file ForStatement.cs.
|
virtual |
Accept method of a concrete visitor.
v | Concrete visitor |
o | Optional information to use in the visit. |
Implements AST.AstNode.
Definition at line 238 of file ForStatement.cs.
Statement AST.ForStatement.GetInitializerElement | ( | int | index | ) |
Gets the element stored in the specified index.
index | Index. |
Definition at line 195 of file ForStatement.cs.
Statement AST.ForStatement.GetIteratorElement | ( | int | index | ) |
Gets the element stored in the specified index.
index | Index. |
Definition at line 209 of file ForStatement.cs.
|
getset |
Gets or sets the statements after condition.
Definition at line 128 of file ForStatement.cs.
|
getset |
Gets or sets the statements to use after initialization
Definition at line 119 of file ForStatement.cs.
|
get |
Gets the auxiliar block of variable declarations
Definition at line 146 of file ForStatement.cs.
|
getset |
Gets or sets the statements before condition.
Definition at line 137 of file ForStatement.cs.
|
getset |
Gets the condition expression of For Statement.
Definition at line 94 of file ForStatement.cs.
|
get |
Gets the number of initializer expressions of For statement.
Definition at line 86 of file ForStatement.cs.
|
get |
Gets the number of iterator expression of For loop.
Definition at line 103 of file ForStatement.cs.
|
get |
Gets the block executed while the condition is true.
Definition at line 111 of file ForStatement.cs.