mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 00:03:03 +00:00
lalr1.cc: location.hh and position.hh are not generated without %defines
* data/location.cc (b4_position_define, b4_location_define): New. (location.hh, position.hh): Generate only if %defines. * data/lalr1.cc: therefore, define these classes when locations are needed, but headers are not generated. * tests/output.at: Check that these files are not generated. * NEWS: Document.
This commit is contained in:
5
NEWS
5
NEWS
@@ -84,6 +84,11 @@ GNU Bison NEWS
|
||||
|
||||
** C++ skeletons improvements
|
||||
|
||||
*** 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.
|
||||
|
||||
*** locations are no longer mandatory (lalr1.cc, glr.cc)
|
||||
|
||||
Both lalr1.cc and glr.cc no longer require %location.
|
||||
|
||||
Reference in New Issue
Block a user