Exemplo n.º 1
0
        public string PrettyPrint
        (
            PftAst program
        )
        {
            StringWriter writer = new StringWriter();

            return(writer.ToString());
        }
 public PftDebugEventArgs
 (
     PftContext context,
     PftAst node
 )
 {
     Context = context;
     Node    = node;
 }
Exemplo n.º 3
0
        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);
                }
            }
        }