1#ifndef INC_ASTPair_hpp__ 
    2#define INC_ASTPair_hpp__ 
   11#include <antlr/config.hpp> 
   12#include <antlr/AST.hpp> 
   14#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 
   46        ANTLR_USE_NAMESPACE(std)
string toString()
 const {
 
   47                ANTLR_USE_NAMESPACE(std)
string r = !root ? ANTLR_USE_NAMESPACE(std)string(
"null") : root->
getText();
 
   48                ANTLR_USE_NAMESPACE(std)
string c = !child ? ANTLR_USE_NAMESPACE(std)string(
"null") : child->
getText();
 
   49                return "["+r+
","+c+
"]";
 
 
 
   53#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 
virtual RefAST getNextSibling() const =0
Get the next sibling in line after this one.
virtual std::string getText() const =0
Get the token text for this node.
ASTPair: utility class used for manipulating a pair of ASTs representing the current AST root and cur...
std::string toString() const
Copy an ASTPair.
void advanceChildToEnd()
Make sure that child is the last sibling.