lalr1.cc: do not create stack.hh without %defines

* data/stack.hh (b4_stack_define): New.
* data/lalr1.cc: Use it when %defines is not passed.
* tests/output.at: Adjust expected output.
This commit is contained in:
Akim Demaille
2012-07-30 16:51:29 +02:00
parent 93549bcd43
commit 5de5b98751
5 changed files with 45 additions and 29 deletions

3
NEWS
View File

@@ -87,7 +87,8 @@ GNU Bison NEWS
*** parser header (%defines) is no longer mandatory (lalr1.cc)
In which case, if needed, the support classes are defined in the generated
parser, instead of additional files such as position.hh and location.hh.
parser, instead of additional files (location.hh, position.hh and
stack.hh).
*** locations are no longer mandatory (lalr1.cc, glr.cc)