de.fuberlin.wiwiss.ng4j.trig
Class AntlrUtils

java.lang.Object
  extended by de.fuberlin.wiwiss.ng4j.trig.AntlrUtils

public class AntlrUtils
extends Object

Miscellaneous things in support of Antlr-derived parsers.

Version:
$Id: AntlrUtils.java,v 1.3 2004/11/26 00:51:07 cyganiak Exp $
Author:
Andy Seaborne

Constructor Summary
AntlrUtils()
           
 
Method Summary
static String ast(antlr.collections.AST t)
          Format an AST node
static void ast(PrintStream out, antlr.collections.AST t)
          Print an AST node (but not its subnodes)
static void ast(Writer w, antlr.collections.AST t)
          Print an AST node (but not its subnodes)
static String ASTout(antlr.collections.AST t)
          Format an AST node and its subnodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntlrUtils

public AntlrUtils()
Method Detail

ast

public static String ast(antlr.collections.AST t)
Format an AST node


ast

public static void ast(PrintStream out,
                       antlr.collections.AST t)
Print an AST node (but not its subnodes)


ast

public static void ast(Writer w,
                       antlr.collections.AST t)
Print an AST node (but not its subnodes)


ASTout

public static String ASTout(antlr.collections.AST t)
Format an AST node and its subnodes. Derived from the antlr code