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

Encapsulates a Move instruction to use in SSA algorithm More...

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

Public Member Functions

 MoveStatement (SingleIdentifierExpression leftExpression, SingleIdentifierExpression rightExpression, string fileName, int line)
 Constructor of MoveStatement 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

SingleIdentifierExpression LeftExp [get]
 Gets the left expression More...
 
SingleIdentifierExpression RightExp [get]
 Gets the right expression More...
 
MoveStatement MoveStat [get, set]
 Gets or sets a move statement associated to the current move statement. 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 Move instruction to use in SSA algorithm

Inheritance: Statement. Implements Composite pattern [Composite]. Implements Visitor pattern [Concrete Element].

Definition at line 34 of file MoveStatement.cs.

Constructor & Destructor Documentation

AST.MoveStatement.MoveStatement ( SingleIdentifierExpression  leftExpression,
SingleIdentifierExpression  rightExpression,
string  fileName,
int  line 
)

Constructor of MoveStatement

Parameters
leftExpressionExpression of the left part of Move instruccion
rightExpressionExpression of the right part of Move instruccion
fileNameFile name.
lineLine number.

Definition at line 93 of file MoveStatement.cs.

Member Function Documentation

override Object AST.MoveStatement.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 111 of file MoveStatement.cs.

Property Documentation

SingleIdentifierExpression AST.MoveStatement.LeftExp
get

Gets the left expression

Definition at line 61 of file MoveStatement.cs.

MoveStatement AST.MoveStatement.MoveStat
getset

Gets or sets a move statement associated to the current move statement.

Definition at line 77 of file MoveStatement.cs.

SingleIdentifierExpression AST.MoveStatement.RightExp
get

Gets the right expression

Definition at line 69 of file MoveStatement.cs.


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