RetsAST Class Reference

Custom AST class that adds line and column numbers to the AST nodes. More...

#include <librets/RetsAST.h>

List of all members.

Public Member Functions

 RetsAST (const RetsAST &other)
 Copy constructor.
 RetsAST ()
 Default constructor.
virtual ~RetsAST ()
virtual int getLine () const
 Returns the line number of the node (or try to derive it from the child node).
virtual void setLine (int line)
virtual int getColumn (void) const
 Returns the column number of the node (or try to derive it from the child node).
virtual void setColumn (int column)
virtual void initialize (int t, const std::string &text)
virtual void initialize (antlr::RefToken t)
virtual void initialize (RefRetsAST ast)
void addChild (RefRetsAST child)
void setNextSibling (RefRetsAST sibling)
virtual antlr::RefAST clone ()

Static Public Member Functions

static antlr::RefAST factory ()


Detailed Description

Custom AST class that adds line and column numbers to the AST nodes.

Filenames will take more work since you'll need a custom token class as well (one that contains the filename)


Constructor & Destructor Documentation

RetsAST ( const RetsAST other  ) 

Copy constructor.

Parameters:
other Other object

RetsAST (  ) 

Default constructor.

virtual ~RetsAST (  )  [virtual]


Member Function Documentation

void addChild ( RefRetsAST  child  ) 

virtual antlr::RefAST clone (  )  [virtual]

static antlr::RefAST factory (  )  [static]

virtual int getColumn ( void   )  const [virtual]

Returns the column number of the node (or try to derive it from the child node).

Returns:
The column number

virtual int getLine (  )  const [virtual]

Returns the line number of the node (or try to derive it from the child node).

Returns:
The line number

virtual void initialize ( RefRetsAST  ast  )  [virtual]

virtual void initialize ( antlr::RefToken  t  )  [virtual]

virtual void initialize ( int  t,
const std::string &  text 
) [virtual]

virtual void setColumn ( int  column  )  [virtual]

virtual void setLine ( int  line  )  [virtual]

void setNextSibling ( RefRetsAST  sibling  ) 


Generated by  doxygen