Fix the "line counting" on parser errors

This commit is contained in:
Felipe Zimmerle
2015-09-29 12:22:23 -03:00
parent 70e2a4b379
commit d084ab5f2d
3 changed files with 10 additions and 9 deletions

View File

@@ -169,11 +169,11 @@ void Driver::error(const yy::location& l, const std::string& m,
parserError << "Line: " << l.end.line << ". ";
parserError << "Column: " << l.end.column << ". ";
}
/*
if (m.empty() == false) {
parserError << " " << m << ".";
parserError << "" << m << " ";
}
*/
if (c.empty() == false) {
parserError << c;
}