mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 00:33:03 +00:00
rename parser_class_name as api.parser.class
The previous name was historical and inconsistent. * src/muscle-tab.c (define_directive): Use the proper value passing syntax, based on the muscle kind. (muscle_percent_variable_update): Use the right value passing syntax. Migrate from parser_class_name to api.parser.class. * data/skeletons: Migrate from parser_class_name to api.parser.class. * doc/bison.texi (%define Summary): Document both parser_class_name and api.parser.class. Promote the latter over the former.
This commit is contained in:
@@ -44,7 +44,7 @@ AT_BANNER([[Java Push Parsing Tests]])
|
||||
# This is missing main(), so two versions
|
||||
# are instantiated with different main() procedures.
|
||||
m4_define([AT_TRIVIAL_GRAMMAR],[
|
||||
%define parser_class_name {YYParser}
|
||||
%define api.parser.class {YYParser}
|
||||
%define parse.error verbose
|
||||
|
||||
%code imports {
|
||||
@@ -346,7 +346,7 @@ AT_DATA([input],[[1 + 2 * 3 = 7
|
||||
AT_DATA([Calc.y],[[/* Infix notation calculator--calc */
|
||||
%language "Java"
|
||||
%name-prefix "Calc"
|
||||
%define parser_class_name {Calc}
|
||||
%define api.parser.class {Calc}
|
||||
|
||||
%code {
|
||||
static class UserLexer implements Calc.Lexer
|
||||
@@ -620,7 +620,7 @@ AT_BISON_OPTION_PUSHDEFS
|
||||
AT_DATA([Calc.y],[[/* Infix notation calculator--calc. */
|
||||
%language "Java"
|
||||
%name-prefix "Calc"
|
||||
%define parser_class_name {Calc}
|
||||
%define api.parser.class {Calc}
|
||||
%lex-param { Reader rdr }
|
||||
%locations
|
||||
|
||||
|
||||
Reference in New Issue
Block a user