Synopsis - Synopsis.IR.IR

module Synopsis.IR
class IR
File: ../Synopsis/IR.py
Top-level Internal Representation. This is essentially a dictionary of different representations such as Parse Tree, Abstract Semantic Graph, etc.
Attributes Summary:
files
A dictionary mapping filenames to `SourceFile.SourceFile` instances.
asg
The Abstract Semantic Graph.
sxr
The Source Cross-Reference SymbolTable.
Methods Summary:
__init__(self, files = None, asg = None, sxr = None)
copy(self)
Make a shallow copy of this IR.
save(self, filename)
merge(self, other)
Merges another IR.
Attributes Details:
files
A dictionary mapping filenames to `SourceFile.SourceFile` instances.
asg
The Abstract Semantic Graph.
sxr
The Source Cross-Reference SymbolTable.
Methods Details:
__init__(self, files = None, asg = None, sxr = None)
Constructor
copy(self)
Make a shallow copy of this IR.
save(self, filename)
Saves an IR object to the given filename
merge(self, other)
Merges another IR. Files and declarations are appended to those in this IR, and types are merged by overwriting existing types - Unduplicator is responsible for sorting out the mess this may cause :)
Generated on Thu Apr 16 16:26:55 2009 by
synopsis (version devel)