The StaDyn Programming Language
Source code documentation of StaDyn, a hybrid static and dynamic typing language.
|
Encapsulates a Do statement of our programming language. More...
Public Member Functions | |
DoStatement (Statement statements, Expression cond, Location location) | |
Constructor of DoStatement 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 Do Statement. More... | |
Statement | Statements [get] |
Gets the block executed when the condition is true. More... | |
List< MoveStatement > | InitDo [get, set] |
Gets or sets the statements to use at the init of the do loop. More... | |
List< ThetaStatement > | BeforeBody [get, set] |
Gets or sets the statements before do body. 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 Do statement of our programming language.
Inheritance: Statement. Implements Composite pattern [Composite]. Implements Visitor pattern [Concrete Element].
Definition at line 34 of file DoStatement.cs.
AST.DoStatement.DoStatement | ( | Statement | statements, |
Expression | cond, | ||
Location | location | ||
) |
Constructor of DoStatement
statements | Block executed in the Do loop. |
cond | Condition of the Do loop. |
fileName | File name. |
lineNumber | Line number. |
columnNumber | Column number. |
Definition at line 109 of file DoStatement.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 126 of file DoStatement.cs.
|
getset |
Gets or sets the statements before do body.
Definition at line 92 of file DoStatement.cs.
|
getset |
Gets the condition expression of Do Statement.
Definition at line 66 of file DoStatement.cs.
|
getset |
Gets or sets the statements to use at the init of the do loop.
Definition at line 83 of file DoStatement.cs.
|
get |
Gets the block executed when the condition is true.
Definition at line 75 of file DoStatement.cs.