Esempio n. 1
0
 protected override void WriteOutput(InputOutput io)
 {
     Results = io.Output;
     Output  = new StringBuilder();
     foreach (LNode node in Results)
     {
         LNode.Printer(node, Output, Sink, null, IndentString, NewlineString);
         Output.Append(NewlineString);
     }
 }
Esempio n. 2
0
            protected override void WriteOutput(InputOutput io)
            {
                RVList <LNode> results = io.Output;

                using (LNode.PushPrinter(io.OutPrinter)) {
                    Output.AppendFormat("// Generated from {1} by LeMP {2}.{0}", NewlineString,
                                        io.FileName, typeof(Compiler).Assembly.GetName().Version.ToString());
                    foreach (LNode node in results)
                    {
                        LNode.Printer(node, Output, Sink, null, IndentString, NewlineString);
                        Output.Append(NewlineString);
                    }
                }
            }