Class NodePrinter

  • All Implemented Interfaces:

    public class NodePrinter
    extends VisitorAdapter
    A simple antlr AST visitor that outputs the tokenName of each node in a pseudo xml style.
    • Constructor Detail

      • NodePrinter

        public NodePrinter​(PrintStream out,
                           String[] tokenNames)
        A visitor that prints a pseudo xml output to the supplied PrintStream
        out - supplied PrintStream to output nodes to
        tokenNames - an array of token names to use