public string PrettyPrint ( PftAst program ) { StringWriter writer = new StringWriter(); return(writer.ToString()); }
public PftDebugEventArgs ( PftContext context, PftAst node ) { Context = context; Node = node; }
public PftProgram ( PftParser.ProgramContext context ) { if (context.pftInfoBlock() != null) { Info = new PftInfoBlock(context.pftInfoBlock()); Children.Add(Info); } foreach (PftParser.CompositeElementContext subContext in context.compositeElement()) { PftAst child = PftDispatcher.DispatchFormat(subContext); if (!ReferenceEquals(child, null)) { Children.Add(child); } } }