]> git.saurik.com Git - bison.git/commit - tests/output.at
api.value.type: diagnose guaranteed failure with --yacc
authorAkim Demaille <akim@lrde.epita.fr>
Wed, 27 Mar 2013 08:18:32 +0000 (09:18 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Tue, 9 Apr 2013 12:07:52 +0000 (14:07 +0200)
commit1fa19a769721658bb53177596531afbbea8b4e1c
tree4b7aee891add899b68c2c2d9b226f75dde8eadf8
parentd1a07886ee63d7346d585d34190162b79a30fdfb
api.value.type: diagnose guaranteed failure with --yacc

Instead of generating invalid C code, generate an error when --yacc and
'%define api.value.type union' are used together.

* data/bison.m4: Issue an error in this case.
* tests/types.at (%yacc vs. %define api.value.type union): New, check this
error.
* doc/bison.texi (Type Generation): Document it.
* tests/output.at: Check that '-o y.tab.c' and '-y' behave equally
wrt generated file names.
* NEWS (Use of YACC='bison -y'): New.
Promote the use of 'bison -o y.tab.c'.
NEWS
data/bison.m4
doc/bison.texi
tests/output.at
tests/types.at