mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 23:33:03 +00:00
diagnostics: complain about Bison directives when -Wyacc
* src/complain.h, src/complain.c (bison_directive): New. * src/scan-gram.l (BISON_DIRECTIVE): New. Use it for Bison extensions.
This commit is contained in:
committed by
Akim Demaille
parent
ebe9b20841
commit
d92ed9d9f7
@@ -88,7 +88,9 @@ AT_SETUP([Early token definitions with --yacc])
|
||||
# prologue, so that they can use the token definitions in it.
|
||||
|
||||
AT_BISON_OPTION_PUSHDEFS
|
||||
AT_DATA_GRAMMAR([input.y],
|
||||
|
||||
# Not AT_DATA_GRAMMAR, which uses %code, which is not supported by Yacc.
|
||||
AT_DATA([input.y],
|
||||
[[%{
|
||||
]AT_YYERROR_DECLARE_EXTERN[
|
||||
]AT_YYLEX_DECLARE_EXTERN[
|
||||
|
||||
Reference in New Issue
Block a user