ProcessSynchronously() public method

Processes a list of nodes directly on the current thread.
Note: AbortTimeout doesn't work when using this overload.
public ProcessSynchronously ( VList stmts ) : VList
stmts VList
return VList
Esempio n. 1
0
 /// <summary>Runs the <see cref="MacroProcessor"/> on all input <see cref="Files"/>.</summary>
 public void Run()
 {
     CompleteInputOutputOptions();
     if (Parallel && Files.Count > 1)
     {
         MacroProcessor.ProcessParallel(Files.AsListSource(), WriteOutput);
     }
     else
     {
         MacroProcessor.ProcessSynchronously(Files.AsListSource(), WriteOutput);
     }
 }
        public static IEnumerable<LNode> ParseNodes(string Text, string Identifier, IParsingService Service, MacroProcessor Processor, IMessageSink Sink)
        {
            var lexer = Service.Tokenize(new UString(Text), Identifier, Sink);

            var nodes = Service.Parse(lexer, Sink);

            return Processor.ProcessSynchronously(new VList<LNode>(nodes));
        }