X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/df222dfaf4da6becae8665d344669eefc705d7f7..8ea6525e3a092b76256fbed7d6edbb0a1861aee1:/src/parse-gram.h diff --git a/src/parse-gram.h b/src/parse-gram.h index 17f86cde..a5a1cfdb 100644 --- a/src/parse-gram.h +++ b/src/parse-gram.h @@ -1,9 +1,8 @@ -/* A Bison parser, made by GNU Bison 2.4.457-4395a. */ +/* A Bison parser, made by GNU Bison 2.6.2.891-3f15-dirty. */ -/* Interface for Bison's Yacc-like parsers in C +/* Bison interface for Yacc-like parsers in C - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006, - 2007, 2008, 2009 Free Software Foundation, Inc. + Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -30,9 +29,19 @@ This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ + +#ifndef YY_GRAM_SRC_PARSE_GRAM_H_INCLUDED +# define YY_GRAM_SRC_PARSE_GRAM_H_INCLUDED +/* Enabling traces. */ +#ifndef YYDEBUG +# define YYDEBUG 1 +#endif +#if YYDEBUG +extern int gram_debug; +#endif /* "%code requires" blocks. */ -/* Line 1659 of yacc.c */ -#line 202 "src/parse-gram.y" +/* Line 1938 of yacc.c */ +#line 223 "src/parse-gram.y" # ifndef PARAM_TYPE # define PARAM_TYPE @@ -46,70 +55,72 @@ # endif -/* Line 1659 of yacc.c */ -#line 51 "src/parse-gram.h" +/* Line 1938 of yacc.c */ +#line 60 "src/parse-gram.h" /* Tokens. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE - /* Put the tokens into the symbol table, so that GDB and other debuggers - know about them. */ - enum yytokentype { - GRAM_EOF = 0, - STRING = 258, - INT = 259, - PERCENT_TOKEN = 260, - PERCENT_NTERM = 261, - PERCENT_TYPE = 262, - PERCENT_DESTRUCTOR = 263, - PERCENT_PRINTER = 264, - PERCENT_LEFT = 265, - PERCENT_RIGHT = 266, - PERCENT_NONASSOC = 267, - PERCENT_PRECEDENCE = 268, - PERCENT_PREC = 269, - PERCENT_DPREC = 270, - PERCENT_MERGE = 271, - PERCENT_CODE = 272, - PERCENT_DEFAULT_PREC = 273, - PERCENT_DEFINE = 274, - PERCENT_DEFINES = 275, - PERCENT_ERROR_VERBOSE = 276, - PERCENT_EXPECT = 277, - PERCENT_EXPECT_RR = 278, - PERCENT_FLAG = 279, - PERCENT_FILE_PREFIX = 280, - PERCENT_GLR_PARSER = 281, - PERCENT_INITIAL_ACTION = 282, - PERCENT_LANGUAGE = 283, - PERCENT_NAME_PREFIX = 284, - PERCENT_NO_DEFAULT_PREC = 285, - PERCENT_NO_LINES = 286, - PERCENT_NONDETERMINISTIC_PARSER = 287, - PERCENT_OUTPUT = 288, - PERCENT_REQUIRE = 289, - PERCENT_SKELETON = 290, - PERCENT_START = 291, - PERCENT_TOKEN_TABLE = 292, - PERCENT_VERBOSE = 293, - PERCENT_YACC = 294, - BRACED_CODE = 295, - BRACKETED_ID = 296, - CHAR = 297, - EPILOGUE = 298, - EQUAL = 299, - ID = 300, - ID_COLON = 301, - PERCENT_PERCENT = 302, - PIPE = 303, - PROLOGUE = 304, - SEMICOLON = 305, - TAG = 306, - TAG_ANY = 307, - TAG_NONE = 308, - PERCENT_PARAM = 309, - PERCENT_UNION = 310 - }; + /* Put the tokens into the symbol table, so that GDB and other debuggers + know about them. */ + enum yytokentype + { + GRAM_EOF = 0, + STRING = 258, + INT = 259, + PERCENT_TOKEN = 260, + PERCENT_NTERM = 261, + PERCENT_TYPE = 262, + PERCENT_DESTRUCTOR = 263, + PERCENT_PRINTER = 264, + PERCENT_LEFT = 265, + PERCENT_RIGHT = 266, + PERCENT_NONASSOC = 267, + PERCENT_PRECEDENCE = 268, + PERCENT_PREC = 269, + PERCENT_DPREC = 270, + PERCENT_MERGE = 271, + PERCENT_CODE = 272, + PERCENT_DEFAULT_PREC = 273, + PERCENT_DEFINE = 274, + PERCENT_DEFINES = 275, + PERCENT_ERROR_VERBOSE = 276, + PERCENT_EXPECT = 277, + PERCENT_EXPECT_RR = 278, + PERCENT_FLAG = 279, + PERCENT_FILE_PREFIX = 280, + PERCENT_GLR_PARSER = 281, + PERCENT_INITIAL_ACTION = 282, + PERCENT_LANGUAGE = 283, + PERCENT_NAME_PREFIX = 284, + PERCENT_NO_DEFAULT_PREC = 285, + PERCENT_NO_LINES = 286, + PERCENT_NONDETERMINISTIC_PARSER = 287, + PERCENT_OUTPUT = 288, + PERCENT_REQUIRE = 289, + PERCENT_SKELETON = 290, + PERCENT_START = 291, + PERCENT_TOKEN_TABLE = 292, + PERCENT_VERBOSE = 293, + PERCENT_YACC = 294, + BRACED_CODE = 295, + BRACED_PREDICATE = 296, + BRACKETED_ID = 297, + CHAR = 298, + EPILOGUE = 299, + EQUAL = 300, + ID = 301, + ID_COLON = 302, + PERCENT_PERCENT = 303, + PIPE = 304, + PROLOGUE = 305, + SEMICOLON = 306, + TAG = 307, + TAG_ANY = 308, + TAG_NONE = 309, + PERCENT_PARAM = 310, + PERCENT_UNION = 311 + }; #endif /* Tokens. */ #define GRAM_EOF 0 @@ -151,30 +162,28 @@ #define PERCENT_VERBOSE 293 #define PERCENT_YACC 294 #define BRACED_CODE 295 -#define BRACKETED_ID 296 -#define CHAR 297 -#define EPILOGUE 298 -#define EQUAL 299 -#define ID 300 -#define ID_COLON 301 -#define PERCENT_PERCENT 302 -#define PIPE 303 -#define PROLOGUE 304 -#define SEMICOLON 305 -#define TAG 306 -#define TAG_ANY 307 -#define TAG_NONE 308 -#define PERCENT_PARAM 309 -#define PERCENT_UNION 310 - - - +#define BRACED_PREDICATE 296 +#define BRACKETED_ID 297 +#define CHAR 298 +#define EPILOGUE 299 +#define EQUAL 300 +#define ID 301 +#define ID_COLON 302 +#define PERCENT_PERCENT 303 +#define PIPE 304 +#define PROLOGUE 305 +#define SEMICOLON 306 +#define TAG 307 +#define TAG_ANY 308 +#define TAG_NONE 309 +#define PERCENT_PARAM 310 +#define PERCENT_UNION 311 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE { -/* Line 1659 of yacc.c */ -#line 88 "src/parse-gram.y" +/* Line 1938 of yacc.c */ +#line 109 "src/parse-gram.y" assoc assoc; char *code; @@ -186,22 +195,22 @@ typedef union YYSTYPE uniqstr uniqstr; unsigned char character; -/* Line 1659 of yacc.c */ -#line 226 "src/parse-gram.y" +/* Line 1938 of yacc.c */ +#line 247 "src/parse-gram.y" param_type param; +/* Line 1938 of yacc.c */ +#line 426 "src/parse-gram.y" +code_props_type code_type; -/* Line 1659 of yacc.c */ -#line 197 "src/parse-gram.h" +/* Line 1938 of yacc.c */ +#line 209 "src/parse-gram.h" } YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 -# define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 #endif - - #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED typedef struct YYLTYPE { @@ -210,10 +219,11 @@ typedef struct YYLTYPE int last_line; int last_column; } YYLTYPE; -# define yyltype YYLTYPE /* obsolescent; will be withdrawn */ # define YYLTYPE_IS_DECLARED 1 # define YYLTYPE_IS_TRIVIAL 1 #endif +int gram_parse (void); +#endif /* !YY_GRAM_SRC_PARSE_GRAM_H_INCLUDED */