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:
parent
4a2bdd6e86
commit
ef9267a58e
2 changed files with 1 additions and 3 deletions
|
|
@ -296,7 +296,7 @@ using namespace spot;
|
||||||
if (str.empty())
|
if (str.empty())
|
||||||
{
|
{
|
||||||
error_list.emplace_back(location, "unexpected empty block");
|
error_list.emplace_back(location, "unexpected empty block");
|
||||||
return nullptr;
|
return fnode::ff();
|
||||||
}
|
}
|
||||||
|
|
||||||
spot::parsed_formula pf;
|
spot::parsed_formula pf;
|
||||||
|
|
|
||||||
|
|
@ -350,10 +350,8 @@ digraph "-" {
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
diff stdout expected
|
diff stdout expected
|
||||||
# FIXME: the "ignoring trailing garbage" is unwanted
|
|
||||||
cat >expected.err <<EOF
|
cat >expected.err <<EOF
|
||||||
5.6-8: unexpected empty block
|
5.6-8: unexpected empty block
|
||||||
5.6-8: ignoring trailing garbage
|
|
||||||
14.6-19.1: missing closing parenthese
|
14.6-19.1: missing closing parenthese
|
||||||
19.1: syntax error, unexpected end of file, expecting fi or ':'
|
19.1: syntax error, unexpected end of file, expecting fi or ':'
|
||||||
autfilt: failed to read automaton from -
|
autfilt: failed to read automaton from -
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue