The StaDyn Programming Language
Source code documentation of StaDyn, a hybrid static and dynamic typing language.
AST.WhileStatement Class Reference

Encapsulates a While statement of our programming languages. More...

Inheritance diagram for AST.WhileStatement:
AST.Statement AST.AstNode

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...
 
- Public Member Functions inherited from AST.Statement
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...
 
- Public Member Functions inherited from AST.AstNode
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< MoveStatementInitWhile [get, set]
 Gets or sets the statements to use at the init of the while loop. More...
 
List< MoveStatementAfterCondition [get, set]
 Gets or sets the statements after condition. More...
 
List< ThetaStatementBeforeCondition [get, set]
 Gets or sets the statements before condition. More...
 
- Properties inherited from AST.AstNode
Location Location [get]
 

Additional Inherited Members

- Protected Member Functions inherited from AST.Statement
 Statement (Location location)
 Protected constructor of Statement. More...
 
- Protected Member Functions inherited from AST.AstNode
 AstNode (Location location)
 Protected constructor of NodeAst More...
 
- Protected Attributes inherited from AST.AstNode
Location location
 Location: Encapsulates in one object the line, column and filename More...
 

Detailed Description

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.

Constructor & Destructor Documentation

AST.WhileStatement.WhileStatement ( Expression  cond,
Statement  statements,
Location  location 
)

Constructor of WhileStatement

Parameters
condCondition of the While loop.
statementsBlock executed in the While loop.
fileNameFile name.
lineNumberLine number.
columnNumberColumn number.

Definition at line 123 of file WhileStatement.cs.

Member Function Documentation

override Object AST.WhileStatement.Accept ( Visitor  v,
Object  o 
)
virtual

Accept method of a concrete visitor.

Parameters
vConcrete visitor
oOptional information to use in the visit.
Returns
Optional information to return

Implements AST.AstNode.

Definition at line 143 of file WhileStatement.cs.

Property Documentation

List<MoveStatement> AST.WhileStatement.AfterCondition
getset

Gets or sets the statements after condition.

Definition at line 97 of file WhileStatement.cs.

List<ThetaStatement> AST.WhileStatement.BeforeCondition
getset

Gets or sets the statements before condition.

Definition at line 106 of file WhileStatement.cs.

Expression AST.WhileStatement.Condition
getset

Gets the condition expression of While Statement.

Definition at line 71 of file WhileStatement.cs.

List<MoveStatement> AST.WhileStatement.InitWhile
getset

Gets or sets the statements to use at the init of the while loop.

Definition at line 88 of file WhileStatement.cs.

Statement AST.WhileStatement.Statements
get

Gets the block executed when the condition is true.

Definition at line 80 of file WhileStatement.cs.


The documentation for this class was generated from the following file: