Parse() public method

public Parse ( ) : void
return void
Exemplo n.º 1
0
        protected string Parse(string src, CommandLineOptions options)
        {
            StreamWriter writer = new StreamWriter(new MemoryStream());
            writer.Write(src);
            writer.Flush();
            writer.BaseStream.Seek(0, SeekOrigin.Begin);

            Parser p = new Parser(new Scanner(writer.BaseStream), options);
            StringWriter result = new StringWriter();
            p.errors.errorStream = result;
            p.Parse();
            return result.ToString();
        }