Add a parse_boolean() function to use in parsers for Automata.

* src/ltlparse/public.hh, src/ltlparse/ltlparse.yy (parse_boolean):
New function.
* src/neverparse/neverclaimparse.yy, src/tgbaparse/tgbaparse.yy:
Use it.
This commit is contained in:
Alexandre Duret-Lutz 2012-10-20 19:18:54 +02:00
parent da5f7ac3aa
commit 877082bfb0
4 changed files with 156 additions and 16 deletions

View file

@ -113,7 +113,8 @@ line: strident ',' strident ',' condition ',' acc_list ';'
{
parse_error_list pel;
const formula* f =
spot::ltl::parse(*$5, pel, parse_environment);
spot::ltl::parse_boolean(*$5, pel, parse_environment,
debug_level());
for (parse_error_list::iterator i = pel.begin();
i != pel.end(); ++i)
{