mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
clearly deprecate %name-prefix
* src/scan-gram.l (%name-prefix): Issue a deprecation warning. * tests/calc.at, tests/headers.at, tests/input.at, tests/java.at, * tests/javapush.at, tests/local.at: Adjust expectations. Or disable -Wdeprecated. * doc/bison.texi: Document that %name-prefix is replaced by %define api.prefix.
This commit is contained in:
@@ -345,7 +345,7 @@ AT_DATA([input],[[1 + 2 * 3 = 7
|
||||
# Compose pieces to build the actual .y file.
|
||||
AT_DATA([Calc.y],[[/* Infix notation calculator--calc */
|
||||
%language "Java"
|
||||
%name-prefix "Calc"
|
||||
|
||||
%define api.parser.class {Calc}
|
||||
|
||||
%code {
|
||||
@@ -619,7 +619,7 @@ AT_BISON_OPTION_PUSHDEFS
|
||||
|
||||
AT_DATA([Calc.y],[[/* Infix notation calculator--calc. */
|
||||
%language "Java"
|
||||
%name-prefix "Calc"
|
||||
|
||||
%define api.parser.class {Calc}
|
||||
%lex-param { Reader rdr }
|
||||
%locations
|
||||
|
||||
Reference in New Issue
Block a user