Dataflow Software Stack  032db78
Master Thesis of Mathijs Saey at the VUB
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
frontEnd.IF1.environment.Scope Class Reference

Single part of the scope stack. More...

Inherits object.

Public Member Functions

def __init__
 Create a scope belonging to a subgraph.s By convention, the subgraph can always be found at label 0. More...
 
def addNode
 Add a node to the scope. More...
 
def getNode
 Get a node from the scope. More...
 
def getSubGraph
 Get the subgraph of the scope. More...
 

Public Attributes

 nodes
 

Detailed Description

Single part of the scope stack.

A scope contains all of the definitions of the current scope.

Constructor & Destructor Documentation

def frontEnd.IF1.environment.Scope.__init__ (   self,
  subGraph = None 
)

Create a scope belonging to a subgraph.s By convention, the subgraph can always be found at label 0.

Member Function Documentation

def frontEnd.IF1.environment.Scope.addNode (   self,
  label,
  node 
)

Add a node to the scope.

The label of the node should match the current length of the node list of this object. This is the case since IF1 nodes start are sequentially numbered starting from one.

Parameters
labelThe IF1 label of the node.
nodeThe IGR node to assign to the label
def frontEnd.IF1.environment.Scope.getNode (   self,
  label 
)

Get a node from the scope.

Parameters
labelThe label of the node to get
def frontEnd.IF1.environment.Scope.getSubGraph (   self)

Get the subgraph of the scope.

Member Data Documentation

frontEnd.IF1.environment.Scope.nodes