AST_Rewrite Class Reference
[AST Rewrite Mechanism]


Detailed Description

This class represents the AST Rewrite Mechanism within ROSE.
Authors:
Quinlan, Schordan
(last checkedin by: <$Author: dquinlan $> on <$Date: 2006/04/24 00:21:32 $>.

Version:
0.5
Date:
Date
2006/04/24 00:21:32
Bug:
Not finished yet.
Warning:
Don't use this until it is ready.
Todo:
Finish documentation!
Note:
Large parts of documentation contained in ROSE/AST_RewriteMechanism/ASTRewrite.docs.
This class encapsulates the complexities associated with rewriting the AST (modifying the AST to add/remove/replace any subtrees within the AST). The user interface consists of a single static member function and several enums to help specify the position of new strings of source code into the AST as it is traversed using the AST Rewrite Tree Traversal which the user must also write.

Any existing traversal (AST Processing?) can be easily modified to use the AST Rewrite Mechanism's tree traversal alternatively. Then the single static member function to add new strings can be called at any place in the AST.

For internal use only.

This class hides the conversion of strings to AST fragments and the internally is implemented using multiple calls to the EDG parser to generate the intermediate AST (as SgFile objects).

This is a new mechanism and not fully debugged, the test code does not presently pass (31 out of 64 cases pass, as I recall).


Classes

class  AST_FragmentIdentificationInheritedAttributeType
 Inherited attribute used within internal traversal of generated AST from transformation strings (intermediately generated files processed to form ASTs).
Authors:
Quinlan.
More...
class  AST_FragmentIdentificationSynthesizedAttributeType
 Synthesized attribute used within internal traversal of generated AST from transformation strings (intermediately generated files processed to form ASTs).
Authors:
Quinlan.
More...
class  AST_FragmentIdentificationTraversal
 Tree traversal definition used within internal traversal of generated AST from transformation strings (intermediately generated files processed to form ASTs).
Authors:
Quinlan.
More...
class  AST_FragmentString
 Class representing container for string and relative position for string in the AST.
Authors:
Quinlan.
More...
class  ASTFragmentContainer
 Internal class to hold collections of AST fragments (generated from strings).
Authors:
Quinlan.
More...
class  ASTFragmentRequirementStrings
 Internal class to hold collections of strings.
Authors:
Quinlan.
More...
class  RewriteTreeTraversal
 Class representing the traversal associated with AST rewrite mechanism.
Authors:
Quinlan.
More...
class  SynthesizedAttribute
 Synthesized attribute used with AST_Rewrite::RewriteTreeTraversal
Authors:
Quinlan.
More...


The documentation for this class was generated from the following file:
Generated on Tue Jan 31 05:33:22 2012 for ROSE by  doxygen 1.4.7