The StaDyn Programming Language
Source code documentation of StaDyn, a hybrid static and dynamic typing language.
|
Encapsulates a While statement of our programming languages. More...
Public Member Functions | |
WhileStatement (Expression cond, Statement statements, Location location) | |
Constructor of WhileStatement 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 | |
Expression | Condition [get, set] |
Gets the condition expression of While Statement. More... | |
Statement | Statements [get] |
Gets the block executed when the condition is true. More... | |
List< MoveStatement > | InitWhile [get, set] |
Gets or sets the statements to use at the init of the while loop. 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... | |
![]() | |
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 While statement of our programming languages.
Inheritance: Statement. Implements Composite pattern [Composite]. Implements Visitor pattern [Concrete Element].
Definition at line 34 of file WhileStatement.cs.
AST.WhileStatement.WhileStatement | ( | Expression | cond, |
Statement | statements, | ||
Location | location | ||
) |
Constructor of WhileStatement
cond | Condition of the While loop. |
statements | Block executed in the While loop. |
fileName | File name. |
lineNumber | Line number. |
columnNumber | Column number. |
Definition at line 123 of file WhileStatement.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 143 of file WhileStatement.cs.
|
getset |
Gets or sets the statements after condition.
Definition at line 97 of file WhileStatement.cs.
|
getset |
Gets or sets the statements before condition.
Definition at line 106 of file WhileStatement.cs.
|
getset |
Gets the condition expression of While Statement.
Definition at line 71 of file WhileStatement.cs.
|
getset |
Gets or sets the statements to use at the init of the while loop.
Definition at line 88 of file WhileStatement.cs.
|
get |
Gets the block executed when the condition is true.
Definition at line 80 of file WhileStatement.cs.