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

Abstract class represents a programming language statement. More...

Inheritance diagram for AST.Statement:
AST.AstNode AST.AssertStatement AST.Block AST.BreakStatement AST.CatchStatement AST.ContinueStatement AST.Declaration AST.DoStatement AST.ExceptionManagementStatement AST.Expression AST.ForeachStatement AST.ForStatement AST.IfElseStatement AST.MoveStatement AST.ReturnStatement AST.SwitchLabel AST.SwitchSection AST.SwitchStatement AST.ThetaStatement AST.ThrowStatement AST.WhileStatement

Public Member Functions

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
abstract Object Accept (Visitor v, Object o)
 Accept method of a concrete visitor. More...
 
override bool Equals (object obj)
 AntLR compares Nodes with the class name. This is not correct for our purposes. More...
 
override int GetHashCode ()
 

Protected Member Functions

 Statement (Location location)
 Protected constructor of Statement. More...
 
- Protected Member Functions inherited from AST.AstNode
 AstNode (Location location)
 Protected constructor of NodeAst More...
 

Additional Inherited Members

- Protected Attributes inherited from AST.AstNode
Location location
 Location: Encapsulates in one object the line, column and filename More...
 
- Properties inherited from AST.AstNode
Location Location [get]
 

Detailed Description

Abstract class represents a programming language statement.

Inheritance: AstNode. Implements Composite pattern [Composite]. Implements Visitor pattern [Element].

Definition at line 30 of file Statement.cs.

Constructor & Destructor Documentation

AST.Statement.Statement ( Location  location)
protected

Protected constructor of Statement.

Parameters
fileNameFile name.
lineNumberLine number.
columnNumberColumn number.

Definition at line 40 of file Statement.cs.

Member Function Documentation

override object AST.Statement.AcceptOperation ( AstOperation  op,
object  arg 
)
virtual

Dispatches expressions to the operation passed as argument. It provokes the execution of op.AcceptOperation(AstNode) with the parameter resolved polymorfically

Parameters
opAstOperation to dispatch
Returns

Reimplemented from AST.AstNode.

Definition at line 52 of file Statement.cs.


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