mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-13 06:13:02 +00:00
* src/gram.h, src/gram.c (pure_parser, glr_parser): Move to...
* src/getargs.c, src/getargs.h: here, as bool, not int. (nondeterministic_parser): New. * src/parse-gram.y, src/scan-gram.l: Support %nondeterministic-parser. * src/output.c (prepare): Use nondeterministic_parser instead of glr_parser where appropriate. * src/tables.c (conflict_row, action_row, save_row) (token_actions, token_actions, pack_vector): Ditto.
This commit is contained in:
@@ -55,24 +55,25 @@
|
||||
PERCENT_LOCATIONS = 280,
|
||||
PERCENT_NAME_PREFIX = 281,
|
||||
PERCENT_NO_LINES = 282,
|
||||
PERCENT_OUTPUT = 283,
|
||||
PERCENT_PARSE_PARAM = 284,
|
||||
PERCENT_PURE_PARSER = 285,
|
||||
PERCENT_SKELETON = 286,
|
||||
PERCENT_START = 287,
|
||||
PERCENT_TOKEN_TABLE = 288,
|
||||
PERCENT_VERBOSE = 289,
|
||||
PERCENT_YACC = 290,
|
||||
TYPE = 291,
|
||||
EQUAL = 292,
|
||||
SEMICOLON = 293,
|
||||
PIPE = 294,
|
||||
ID = 295,
|
||||
ID_COLON = 296,
|
||||
PERCENT_PERCENT = 297,
|
||||
PROLOGUE = 298,
|
||||
EPILOGUE = 299,
|
||||
BRACED_CODE = 300
|
||||
PERCENT_NONDETERMINISTIC_PARSER = 283,
|
||||
PERCENT_OUTPUT = 284,
|
||||
PERCENT_PARSE_PARAM = 285,
|
||||
PERCENT_PURE_PARSER = 286,
|
||||
PERCENT_SKELETON = 287,
|
||||
PERCENT_START = 288,
|
||||
PERCENT_TOKEN_TABLE = 289,
|
||||
PERCENT_VERBOSE = 290,
|
||||
PERCENT_YACC = 291,
|
||||
TYPE = 292,
|
||||
EQUAL = 293,
|
||||
SEMICOLON = 294,
|
||||
PIPE = 295,
|
||||
ID = 296,
|
||||
ID_COLON = 297,
|
||||
PERCENT_PERCENT = 298,
|
||||
PROLOGUE = 299,
|
||||
EPILOGUE = 300,
|
||||
BRACED_CODE = 301
|
||||
};
|
||||
#endif
|
||||
#define GRAM_EOF 0
|
||||
@@ -101,24 +102,25 @@
|
||||
#define PERCENT_LOCATIONS 280
|
||||
#define PERCENT_NAME_PREFIX 281
|
||||
#define PERCENT_NO_LINES 282
|
||||
#define PERCENT_OUTPUT 283
|
||||
#define PERCENT_PARSE_PARAM 284
|
||||
#define PERCENT_PURE_PARSER 285
|
||||
#define PERCENT_SKELETON 286
|
||||
#define PERCENT_START 287
|
||||
#define PERCENT_TOKEN_TABLE 288
|
||||
#define PERCENT_VERBOSE 289
|
||||
#define PERCENT_YACC 290
|
||||
#define TYPE 291
|
||||
#define EQUAL 292
|
||||
#define SEMICOLON 293
|
||||
#define PIPE 294
|
||||
#define ID 295
|
||||
#define ID_COLON 296
|
||||
#define PERCENT_PERCENT 297
|
||||
#define PROLOGUE 298
|
||||
#define EPILOGUE 299
|
||||
#define BRACED_CODE 300
|
||||
#define PERCENT_NONDETERMINISTIC_PARSER 283
|
||||
#define PERCENT_OUTPUT 284
|
||||
#define PERCENT_PARSE_PARAM 285
|
||||
#define PERCENT_PURE_PARSER 286
|
||||
#define PERCENT_SKELETON 287
|
||||
#define PERCENT_START 288
|
||||
#define PERCENT_TOKEN_TABLE 289
|
||||
#define PERCENT_VERBOSE 290
|
||||
#define PERCENT_YACC 291
|
||||
#define TYPE 292
|
||||
#define EQUAL 293
|
||||
#define SEMICOLON 294
|
||||
#define PIPE 295
|
||||
#define ID 296
|
||||
#define ID_COLON 297
|
||||
#define PERCENT_PERCENT 298
|
||||
#define PROLOGUE 299
|
||||
#define EPILOGUE 300
|
||||
#define BRACED_CODE 301
|
||||
|
||||
|
||||
|
||||
@@ -134,7 +136,7 @@ typedef union YYSTYPE {
|
||||
uniqstr uniqstr;
|
||||
} YYSTYPE;
|
||||
/* Line 1252 of yacc.c. */
|
||||
#line 138 "y.tab.h"
|
||||
#line 140 "y.tab.h"
|
||||
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
||||
# define YYSTYPE_IS_DECLARED 1
|
||||
# define YYSTYPE_IS_TRIVIAL 1
|
||||
|
||||
Reference in New Issue
Block a user