Improvements to source file position tracking.

Be better about tracking the full extent of expressions in the parser;
this leads to more intelligible error messages when we indicate where
exactly the error happened.
This commit is contained in:
Matt Pharr
2011-11-03 16:04:01 -07:00
parent 43a2d510bf
commit 7d6f89c8d2
6 changed files with 77 additions and 58 deletions

2
ast.h
View File

@@ -69,7 +69,7 @@ public:
/** All AST nodes must track the file position where they are
defined. */
const SourcePos pos;
SourcePos pos;
};