ANTLR Support Libraries 2.7.1+
Public Member Functions | Public Attributes
antlr::ASTPair Class Reference

#include <ASTPair.hpp>

Collaboration diagram for antlr::ASTPair:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void advanceChildToEnd ()
std::string toString () const

Public Attributes

RefAST root
RefAST child

Detailed Description

ASTPair: utility class used for manipulating a pair of ASTs representing the current AST root and current AST sibling. This exists to compensate for the lack of pointers or 'var' arguments in Java.

OK, so we can do those things in C++, but it seems easier to stick with the Java way for now.


Member Function Documentation

void antlr::ASTPair::advanceChildToEnd ( ) [inline]

Make sure that child is the last sibling

std ::string antlr::ASTPair::toString ( ) const [inline]

Copy an ASTPair. Don't call it clone() because we want type-safety


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines