Add support for Bison 3.0.
We still want to remain compatible with Bison 2.7 so instead of fixing all the new errors reported by 3.0 we silence some warning. We should fix these for good once Bison 3.0 is more widespread. * m4/bison.m4: New file. Test if bison support -Wno-empty-rule and -Wno-deprecated. Define BISON and BISON_EXTRA_FLAGS. * configure.ac: Do not test for yacc, use the above test instead. * src/dstarparse/Makefile.am, src/eltlparse/Makefile.am, src/kripkeparse/Makefile.am, src/ltlparse/Makefile.am, src/neverparse/Makefile.am, src/tgbaparse/Makefile.am: Use BISON and BISON_EXTRA_FLAGS. * src/ltlparse/ltlparse.yy: Fix or and remove useless %right/%nonassoc settings. * src/eltlparse/eltlparse.yy: Likewise, and remove "%pure-parser".
This commit is contained in:
parent
5663872083
commit
3c943d836a
10 changed files with 27 additions and 12 deletions
|
|
@ -43,7 +43,7 @@ $(FROM_DSTARPARSE_YY_MAIN): $(srcdir)/$(DSTARPARSE_YY)
|
|||
## $(srcdir)/$(DSTARPARSE_YY), it will also use the value of $(srcdir)/
|
||||
## in the generated include statements.
|
||||
cd $(srcdir) && \
|
||||
bison -Wall -Werror --report=all \
|
||||
$(BISON) -Wall -Werror --report=all $(BISON_EXTRA_FLAGS) \
|
||||
$(DSTARPARSE_YY) -o $(FROM_DSTARPARSE_YY_MAIN)
|
||||
$(FROM_DSTARPARSE_YY_OTHERS): $(DSTARPARSE_YY)
|
||||
@test -f $@ || $(MAKE) $(AM_MAKEFLAGS) $(FROM_DSTARPARSE_YY_MAIN)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue