Commit 89aff725 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

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

Suggested by Akim.
parent f7fe379e
2005-09-29 Alexandre Duret-Lutz <adl@src.lip6.fr> 2005-09-29 Alexandre Duret-Lutz <adl@src.lip6.fr>
* src/ltlparse/ltlparse.yy (result): Do not assign to $$, it's useless.
Suggested by Akim.
* src/tgbatest/randtgba.cc: New option -H. * src/tgbatest/randtgba.cc: New option -H.
* src/tgbaalgos/emptiness_stats.hh (unsigned_statistics_copy): New * src/tgbaalgos/emptiness_stats.hh (unsigned_statistics_copy): New
class. class.
......
...@@ -115,24 +115,24 @@ using namespace spot::ltl; ...@@ -115,24 +115,24 @@ using namespace spot::ltl;
%% %%
result: subformula END_OF_INPUT result: subformula END_OF_INPUT
{ result = $$ = $1; { result = $1;
YYACCEPT; YYACCEPT;
} }
| error END_OF_INPUT | error END_OF_INPUT
{ error_list.push_back(parse_error(@1, { error_list.push_back(parse_error(@1,
"could not parse anything sensible")); "could not parse anything sensible"));
result = $$ = 0; result = 0;
YYABORT; YYABORT;
} }
| subformula error END_OF_INPUT | subformula error END_OF_INPUT
{ error_list.push_back(parse_error(@2, { error_list.push_back(parse_error(@2,
"ignoring trailing garbage")); "ignoring trailing garbage"));
result = $$ = $1; result = $1;
YYACCEPT; YYACCEPT;
} }
| END_OF_INPUT | END_OF_INPUT
{ error_list.push_back(parse_error(@$, "empty input")); { error_list.push_back(parse_error(@$, "empty input"));
result = $$ = 0; result = 0;
YYABORT; YYABORT;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment