Commit 34050ca8 authored by Robert Griesemer's avatar Robert Griesemer

- adjustments to match slightly changed scanner interface

- more comments on parser, various cleanups

TBR=r
OCL=26813
CL=26813
parent 3f9da829
...@@ -101,7 +101,7 @@ func Compile(src_file string, flags *Flags) (*ast.Package, ErrorList) { ...@@ -101,7 +101,7 @@ func Compile(src_file string, flags *Flags) (*ast.Package, ErrorList) {
if flags.Verbose { if flags.Verbose {
pflags |= parser.Trace; pflags |= parser.Trace;
} }
prog := parser.Parse(&scanner, &err, parser.ParseEntirePackage, pflags); prog, nerrs := parser.Parse(&scanner, &err, parser.ParseEntirePackage, pflags);
if err.errors.Len() == 0 { if err.errors.Len() == 0 {
TypeChecker.CheckProgram(&err, prog); TypeChecker.CheckProgram(&err, prog);
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment