Remove `readsave' and fix line numbers in tgbaparse error messages.
* src/tgbaparse/tgbaparse.yy (line): Fix computation of line number for error messages when parsing conditions. * src/tgbatest/readsave.test: Check the syntax position of syntax errors in the diagnostics. Use ltl2tgba instead of readsave. * src/tgbatest/Makefile.am (check_PROGRAMS): Remove readsave.
This commit is contained in:
parent
a53706c824
commit
7da112344e
5 changed files with 41 additions and 98 deletions
|
|
@ -118,13 +118,12 @@ line: strident ',' strident ',' condition ',' acc_list ';'
|
|||
i != pel.end(); ++i)
|
||||
{
|
||||
// Adjust the diagnostic to the current position.
|
||||
location here = @1;
|
||||
here.begin.line += i->first.begin.line;
|
||||
location here = @5;
|
||||
here.end.line = here.begin.line + i->first.end.line - 1;
|
||||
here.end.column =
|
||||
here.begin.column + i->first.end.column;
|
||||
here.begin.line += i->first.begin.line - 1;
|
||||
here.begin.column += i->first.begin.column;
|
||||
here.end.line =
|
||||
here.begin.line + i->first.begin.line;
|
||||
here.end.column =
|
||||
here.begin.column + i->first.begin.column;
|
||||
error_list.push_back(spot::tgba_parse_error(here,
|
||||
i->second));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue