Exemplo n.º 1
0
 public CompilationUnit Parse(TextReader reader)
 {
     var parser = new ICSharpCode.NRefactory.Cpp.Parser.CppParser(new CppLexer(reader));
     parser.Parse();
     hasErrors = parser.Errors.Count > 0;
     errors = parser.Errors;
     return parser.CompilationUnit;
 }
Exemplo n.º 2
0
        public CompilationUnit Parse(TextReader reader)
        {
            var parser = new ICSharpCode.NRefactory.Cpp.Parser.CppParser(new CppLexer(reader));

            parser.Parse();
            hasErrors = parser.Errors.Count > 0;
            errors    = parser.Errors;
            return(parser.CompilationUnit);
        }