public virtual void PrintGrammar( TextWriter output )
{
ANTLRTreePrinter printer = new ANTLRTreePrinter( new Antlr.Runtime.Tree.CommonTreeNodeStream( grammarTree ) );
//printer.setASTNodeClass( "org.antlr.tool.GrammarAST" );
try
{
string g = printer.toString( this, false );
output.WriteLine( g );
}
catch ( RecognitionException re )
{
ErrorManager.Error( ErrorManager.MSG_SYNTAX_ERROR, re );
}
}