* src/ltlparse/ltlparse.yy (result): Do not assign to $$, it's useless.

Suggested by Akim.
This commit is contained in:
Alexandre Duret-Lutz 2005-09-29 13:22:17 +00:00
parent f7fe379e60
commit 89aff72523
2 changed files with 7 additions and 4 deletions

View file

@ -115,24 +115,24 @@ using namespace spot::ltl;
%%
result: subformula END_OF_INPUT
{ result = $$ = $1;
{ result = $1;
YYACCEPT;
}
| error END_OF_INPUT
{ error_list.push_back(parse_error(@1,
"could not parse anything sensible"));
result = $$ = 0;
result = 0;
YYABORT;
}
| subformula error END_OF_INPUT
{ error_list.push_back(parse_error(@2,
"ignoring trailing garbage"));
result = $$ = $1;
result = $1;
YYACCEPT;
}
| END_OF_INPUT
{ error_list.push_back(parse_error(@$, "empty input"));
result = $$ = 0;
result = 0;
YYABORT;
}