parsetl: remove a superfluous diagnostic on some erroneous input

* tests/core/neverclaimread.test: Adjust and remove FIXME.
* spot/parsetl/parsetl.yy (try_recursive_parse): Return false
on empty string.
This commit is contained in:
Alexandre Duret-Lutz 2022-05-06 13:58:52 +02:00
parent 9ae2e9c03d
commit 506442450e
2 changed files with 1 additions and 3 deletions

View file

@ -164,7 +164,7 @@ using namespace spot;
if (str.empty())
{
error_list.emplace_back(location, "unexpected empty block");
return nullptr;
return fnode::ff();
}
spot::parsed_formula pf;

View file

@ -350,10 +350,8 @@ digraph "-" {
}
EOF
diff stdout expected
# FIXME: the "ignoring trailing garbage" is unwanted
cat >expected.err <<EOF
5.6-8: unexpected empty block
5.6-8: ignoring trailing garbage
14.6-19.1: missing closing parenthese
19.1: syntax error, unexpected end of file, expecting fi or ':'
autfilt: failed to read automaton from -