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:
Akim Demaille
2012-07-30 16:37:02 +02:00
parent 85f0b29e6d
commit 93549bcd43
5 changed files with 76 additions and 50 deletions

3
TODO
View File

@@ -7,6 +7,9 @@ show_sub_messages should call show_sub_message.
b4_shared_declarations is no longer what it is. Make it
b4_parser_declaration for instance.
** glr.cc: %defines
it should not be mandatory.
** Variable names.
What should we name `variant' and `lex_symbol'?