Synopsis - Synopsis.Processors.Transformer.Transformer

module Synopsis.Processors.Transformer
class Transformer
File: ../Synopsis/Processors/Transformer.py
A class that creates a new ASG from an old one. This is a helper base for more specialized classes that manipulate the ASG based on the comments in the nodes
Attributes Summary:
__scopes
__current
Methods Summary:
__init__(self, * * kwds)
process(self, ir, * * kwds)
finalize(self)
push(self)
pop(self, decl)
add(self, decl)
current_scope(self)
visit_builtin(self, decl)
Methods Details:
__init__(self, * * kwds)
Constructor
finalize(self)
replace the ASG with the newly created one
push(self)
Pushes the current scope onto the stack and starts a new one
pop(self, decl)
Pops the current scope from the stack, and appends the given declaration to it
add(self, decl)
Adds the given decl to the current scope
current_scope(self)
Returns the current scope: a list of declarations
Generated on Thu Apr 16 16:26:58 2009 by
synopsis (version devel)