Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MyAST Class Reference

#include <MyAST.h>

List of all members.

Public Member Functions

 MyAST (const MyAST &other)
 MyAST (void)
virtual ~MyAST (void)
virtual int getLine (void) const
virtual void setLine (int l)
virtual void initialize (int t, const ANTLR_USE_NAMESPACE(std) string &txt)
virtual void initialize (ANTLR_USE_NAMESPACE(antlr) RefToken t)
virtual void initialize (RefMyAST ast)
void addChild (RefMyAST c)
void setNextSibling (RefMyAST c)
virtual ANTLR_USE_NAMESPACE (antlr) RefAST clone(void)

Static Public Member Functions

 ANTLR_USE_NAMESPACE (antlr) RefAST factory(void)

Private Attributes

int line


Detailed Description

Custom AST class that adds line numbers to the AST nodes. easily extended with columns. Filenames will take more work since you'll need a custom token class as well (one that contains the filename)


Constructor & Destructor Documentation

MyAST::MyAST const MyAST other  )  [inline]
 

MyAST::MyAST void   )  [inline]
 

virtual MyAST::~MyAST void   )  [inline, virtual]
 


Member Function Documentation

void MyAST::addChild RefMyAST  c  )  [inline]
 

MyAST::ANTLR_USE_NAMESPACE antlr   )  [inline, static]
 

virtual MyAST::ANTLR_USE_NAMESPACE antlr   )  [inline, virtual]
 

virtual int MyAST::getLine void   )  const [inline, virtual]
 

virtual void MyAST::initialize RefMyAST  ast  )  [inline, virtual]
 

virtual void MyAST::initialize ANTLR_USE_NAMESPACE(antlr) RefToken  t  )  [inline, virtual]
 

virtual void MyAST::initialize int  t,
const ANTLR_USE_NAMESPACE(std) string &  txt
[inline, virtual]
 

the initialize methods are called by the tree building constructs depending on which version is called the line number is filled in. e.g. a bit depending on how the node is constructed it will have the line number filled in or not (imaginary nodes!).

virtual void MyAST::setLine int  l  )  [inline, virtual]
 

void MyAST::setNextSibling RefMyAST  c  )  [inline]
 


Member Data Documentation

int MyAST::line [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:36:41 2009 for ACS C++ API by doxygen 1.3.8