X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/75d1fe16112a39706f26ac0d4d2784162e49f874..e96c9728dacee1d130874c7f521ee8cbea921eea:/src/parse-gram.h diff --git a/src/parse-gram.h b/src/parse-gram.h index 404d4155..70c3d4c7 100644 --- a/src/parse-gram.h +++ b/src/parse-gram.h @@ -1,70 +1,122 @@ #ifndef BISON_PARSE_GRAM_H # define BISON_PARSE_GRAM_H +/* Tokens. */ +#ifndef YYTOKENTYPE +# if defined (__STDC__) || defined (__cplusplus) + /* Put the tokens into the symbol table, so that GDB and other debuggers + know about them. */ + enum yytokentype { + GRAM_EOF = 0, + STRING = 258, + CHARACTER = 259, + INT = 260, + PERCENT_TOKEN = 261, + PERCENT_NTERM = 262, + PERCENT_TYPE = 263, + PERCENT_UNION = 264, + PERCENT_EXPECT = 265, + PERCENT_START = 266, + PERCENT_LEFT = 267, + PERCENT_RIGHT = 268, + PERCENT_NONASSOC = 269, + PERCENT_PREC = 270, + PERCENT_VERBOSE = 271, + PERCENT_ERROR_VERBOSE = 272, + PERCENT_OUTPUT = 273, + PERCENT_FILE_PREFIX = 274, + PERCENT_NAME_PREFIX = 275, + PERCENT_DEFINE = 276, + PERCENT_PURE_PARSER = 277, + PERCENT_DEFINES = 278, + PERCENT_YACC = 279, + PERCENT_DEBUG = 280, + PERCENT_LOCATIONS = 281, + PERCENT_NO_LINES = 282, + PERCENT_SKELETON = 283, + PERCENT_TOKEN_TABLE = 284, + TYPE = 285, + EQUAL = 286, + SEMICOLON = 287, + COLON = 288, + PIPE = 289, + ID = 290, + PERCENT_PERCENT = 291, + PROLOGUE = 292, + EPILOGUE = 293, + BRACED_CODE = 294 + }; +# endif + /* POSIX requires `int' for tokens in interfaces. */ +# define YYTOKENTYPE int +#endif /* !YYTOKENTYPE */ +#define GRAM_EOF 0 +#define STRING 258 +#define CHARACTER 259 +#define INT 260 +#define PERCENT_TOKEN 261 +#define PERCENT_NTERM 262 +#define PERCENT_TYPE 263 +#define PERCENT_UNION 264 +#define PERCENT_EXPECT 265 +#define PERCENT_START 266 +#define PERCENT_LEFT 267 +#define PERCENT_RIGHT 268 +#define PERCENT_NONASSOC 269 +#define PERCENT_PREC 270 +#define PERCENT_VERBOSE 271 +#define PERCENT_ERROR_VERBOSE 272 +#define PERCENT_OUTPUT 273 +#define PERCENT_FILE_PREFIX 274 +#define PERCENT_NAME_PREFIX 275 +#define PERCENT_DEFINE 276 +#define PERCENT_PURE_PARSER 277 +#define PERCENT_DEFINES 278 +#define PERCENT_YACC 279 +#define PERCENT_DEBUG 280 +#define PERCENT_LOCATIONS 281 +#define PERCENT_NO_LINES 282 +#define PERCENT_SKELETON 283 +#define PERCENT_TOKEN_TABLE 284 +#define TYPE 285 +#define EQUAL 286 +#define SEMICOLON 287 +#define COLON 288 +#define PIPE 289 +#define ID 290 +#define PERCENT_PERCENT 291 +#define PROLOGUE 292 +#define EPILOGUE 293 +#define BRACED_CODE 294 + + + + #ifndef YYSTYPE -typedef union -{ +#line 73 "parse-gram.y" +typedef union { symbol_t *symbol; int integer; char *string; associativity assoc; } yystype; # define YYSTYPE yystype -# define YYSTYPE_IS_TRIVIAL 1 #endif + + #ifndef YYLTYPE typedef struct yyltype { int first_line; int first_column; - int last_line; int last_column; } yyltype; - # define YYLTYPE yyltype -# define YYLTYPE_IS_TRIVIAL 1 #endif -# define GRAM_EOF 0 -# define STRING 257 -# define CHARACTER 258 -# define INT 259 -# define PERCENT_TOKEN 260 -# define PERCENT_NTERM 261 -# define PERCENT_TYPE 262 -# define PERCENT_UNION 263 -# define PERCENT_EXPECT 264 -# define PERCENT_START 265 -# define PERCENT_LEFT 266 -# define PERCENT_RIGHT 267 -# define PERCENT_NONASSOC 268 -# define PERCENT_PREC 269 -# define PERCENT_VERBOSE 270 -# define PERCENT_ERROR_VERBOSE 271 -# define PERCENT_OUTPUT 272 -# define PERCENT_FILE_PREFIX 273 -# define PERCENT_NAME_PREFIX 274 -# define PERCENT_DEFINE 275 -# define PERCENT_PURE_PARSER 276 -# define PERCENT_DEFINES 277 -# define PERCENT_YACC 278 -# define PERCENT_DEBUG 279 -# define PERCENT_LOCATIONS 280 -# define PERCENT_NO_LINES 281 -# define PERCENT_SKELETON 282 -# define PERCENT_TOKEN_TABLE 283 -# define TYPE 284 -# define EQUAL 285 -# define SEMICOLON 286 -# define COLON 287 -# define PIPE 288 -# define ID 289 -# define PERCENT_PERCENT 290 -# define PROLOGUE 291 -# define EPILOGUE 292 -# define BRACED_CODE 293 #endif /* not BISON_PARSE_GRAM_H */ +