* src/evtgbatest/evtgbaparse.yy, src/evtgbaparse/evtgbascan.ll,
src/evtgbaparse/parsedecl.hh, src/evtgbaparse/public.hh, src/ltlparse/fmterror.cc, src/ltlparse/ltlparse.yy, src/ltlparse/ltlscan.ll, src/ltlparse/parsedecl.hh, src/ltlparse/public.hh, src/tgbaparse/parsedecl.hh, src/tgbaparse/public.hh, src/tgbaparse/tgbaparse.yy, src/tgbaparse/tgbascan.ll: Adjust for Bison 2.3. Use %name-prefix instead of the "#define yy ... " kludge.
This commit is contained in:
parent
db98955e9d
commit
c055212326
14 changed files with 86 additions and 70 deletions
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
%}
|
||||
|
||||
%name-prefix="ltlyy"
|
||||
%parse-param {spot::ltl::parse_error_list &error_list}
|
||||
%parse-param {spot::ltl::environment &parse_environment}
|
||||
%parse-param {spot::ltl::formula* &result}
|
||||
|
|
@ -262,7 +263,7 @@ subformula: ATOMIC_PROP
|
|||
%%
|
||||
|
||||
void
|
||||
yy::parser::error(const location_type& location, const std::string& message)
|
||||
ltlyy::parser::error(const location_type& location, const std::string& message)
|
||||
{
|
||||
error_list.push_back(parse_error(location, message));
|
||||
}
|
||||
|
|
@ -279,7 +280,7 @@ namespace spot
|
|||
{
|
||||
formula* result = 0;
|
||||
flex_set_buffer(ltl_string.c_str());
|
||||
yy::parser parser(error_list, env, result);
|
||||
ltlyy::parser parser(error_list, env, result);
|
||||
parser.set_debug_level(debug);
|
||||
parser.parse();
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue