Ying Wang | 0543663 | 2013-04-05 16:01:00 -0700 | [diff] [blame] | 1 | /* A Bison parser, made by GNU Bison 2.6.5.63-3ada. */ |
The Android Open Source Project | cea198a | 2009-03-03 19:29:17 -0800 | [diff] [blame] | 2 | |
Ying Wang | 0543663 | 2013-04-05 16:01:00 -0700 | [diff] [blame] | 3 | /* Bison interface for Yacc-like parsers in C |
| 4 | |
| 5 | Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc. |
| 6 | |
| 7 | This program is free software: you can redistribute it and/or modify |
The Android Open Source Project | cea198a | 2009-03-03 19:29:17 -0800 | [diff] [blame] | 8 | it under the terms of the GNU General Public License as published by |
Ying Wang | 0543663 | 2013-04-05 16:01:00 -0700 | [diff] [blame] | 9 | the Free Software Foundation, either version 3 of the License, or |
| 10 | (at your option) any later version. |
| 11 | |
The Android Open Source Project | cea198a | 2009-03-03 19:29:17 -0800 | [diff] [blame] | 12 | This program is distributed in the hope that it will be useful, |
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | GNU General Public License for more details. |
Ying Wang | 0543663 | 2013-04-05 16:01:00 -0700 | [diff] [blame] | 16 | |
The Android Open Source Project | cea198a | 2009-03-03 19:29:17 -0800 | [diff] [blame] | 17 | You should have received a copy of the GNU General Public License |
Ying Wang | 0543663 | 2013-04-05 16:01:00 -0700 | [diff] [blame] | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
The Android Open Source Project | cea198a | 2009-03-03 19:29:17 -0800 | [diff] [blame] | 19 | |
| 20 | /* As a special exception, you may create a larger work that contains |
| 21 | part or all of the Bison parser skeleton and distribute that work |
| 22 | under terms of your choice, so long as that work isn't itself a |
| 23 | parser generator using the skeleton or a modified version thereof |
| 24 | as a parser skeleton. Alternatively, if you modify or redistribute |
| 25 | the parser skeleton itself, you may (at your option) remove this |
| 26 | special exception, which will cause the skeleton and the resulting |
| 27 | Bison output files to be licensed under the GNU General Public |
| 28 | License without this special exception. |
Ying Wang | 0543663 | 2013-04-05 16:01:00 -0700 | [diff] [blame] | 29 | |
The Android Open Source Project | cea198a | 2009-03-03 19:29:17 -0800 | [diff] [blame] | 30 | This special exception was added by the Free Software Foundation in |
| 31 | version 2.2 of Bison. */ |
| 32 | |
Ying Wang | 0543663 | 2013-04-05 16:01:00 -0700 | [diff] [blame] | 33 | #ifndef YY_GRAM__________SRC_PARSE_GRAM_H_INCLUDED |
| 34 | # define YY_GRAM__________SRC_PARSE_GRAM_H_INCLUDED |
| 35 | /* Enabling traces. */ |
| 36 | #ifndef GRAM_DEBUG |
| 37 | # if defined YYDEBUG |
| 38 | # if YYDEBUG |
| 39 | # define GRAM_DEBUG 1 |
| 40 | # else |
| 41 | # define GRAM_DEBUG 0 |
| 42 | # endif |
| 43 | # else /* ! defined YYDEBUG */ |
| 44 | # define GRAM_DEBUG 1 |
| 45 | # endif /* ! defined YYDEBUG */ |
| 46 | #endif /* ! defined GRAM_DEBUG */ |
| 47 | #if GRAM_DEBUG |
| 48 | extern int gram_debug; |
| 49 | #endif |
| 50 | |
The Android Open Source Project | cea198a | 2009-03-03 19:29:17 -0800 | [diff] [blame] | 51 | /* Tokens. */ |
Ying Wang | 0543663 | 2013-04-05 16:01:00 -0700 | [diff] [blame] | 52 | #ifndef GRAM_TOKENTYPE |
| 53 | # define GRAM_TOKENTYPE |
The Android Open Source Project | cea198a | 2009-03-03 19:29:17 -0800 | [diff] [blame] | 54 | /* Put the tokens into the symbol table, so that GDB and other debuggers |
| 55 | know about them. */ |
Ying Wang | 0543663 | 2013-04-05 16:01:00 -0700 | [diff] [blame] | 56 | enum gram_tokentype { |
The Android Open Source Project | cea198a | 2009-03-03 19:29:17 -0800 | [diff] [blame] | 57 | GRAM_EOF = 0, |
| 58 | STRING = 258, |
| 59 | INT = 259, |
| 60 | PERCENT_TOKEN = 260, |
| 61 | PERCENT_NTERM = 261, |
| 62 | PERCENT_TYPE = 262, |
| 63 | PERCENT_DESTRUCTOR = 263, |
| 64 | PERCENT_PRINTER = 264, |
Ying Wang | 0543663 | 2013-04-05 16:01:00 -0700 | [diff] [blame] | 65 | PERCENT_LEFT = 265, |
| 66 | PERCENT_RIGHT = 266, |
| 67 | PERCENT_NONASSOC = 267, |
| 68 | PERCENT_PREC = 268, |
| 69 | PERCENT_DPREC = 269, |
| 70 | PERCENT_MERGE = 270, |
| 71 | PERCENT_CODE = 271, |
The Android Open Source Project | cea198a | 2009-03-03 19:29:17 -0800 | [diff] [blame] | 72 | PERCENT_DEBUG = 272, |
| 73 | PERCENT_DEFAULT_PREC = 273, |
| 74 | PERCENT_DEFINE = 274, |
| 75 | PERCENT_DEFINES = 275, |
| 76 | PERCENT_ERROR_VERBOSE = 276, |
| 77 | PERCENT_EXPECT = 277, |
| 78 | PERCENT_EXPECT_RR = 278, |
| 79 | PERCENT_FILE_PREFIX = 279, |
| 80 | PERCENT_GLR_PARSER = 280, |
| 81 | PERCENT_INITIAL_ACTION = 281, |
Ying Wang | 0543663 | 2013-04-05 16:01:00 -0700 | [diff] [blame] | 82 | PERCENT_LANGUAGE = 282, |
| 83 | PERCENT_LEX_PARAM = 283, |
| 84 | PERCENT_LOCATIONS = 284, |
| 85 | PERCENT_NAME_PREFIX = 285, |
| 86 | PERCENT_NO_DEFAULT_PREC = 286, |
| 87 | PERCENT_NO_LINES = 287, |
| 88 | PERCENT_NONDETERMINISTIC_PARSER = 288, |
| 89 | PERCENT_OUTPUT = 289, |
| 90 | PERCENT_PARSE_PARAM = 290, |
| 91 | PERCENT_PURE_PARSER = 291, |
| 92 | PERCENT_REQUIRE = 292, |
| 93 | PERCENT_SKELETON = 293, |
| 94 | PERCENT_START = 294, |
| 95 | PERCENT_TOKEN_TABLE = 295, |
| 96 | PERCENT_VERBOSE = 296, |
| 97 | PERCENT_YACC = 297, |
| 98 | BRACED_CODE = 298, |
| 99 | BRACKETED_ID = 299, |
| 100 | CHAR = 300, |
| 101 | EPILOGUE = 301, |
| 102 | EQUAL = 302, |
| 103 | ID = 303, |
| 104 | ID_COLON = 304, |
| 105 | PERCENT_PERCENT = 305, |
| 106 | PIPE = 306, |
| 107 | PROLOGUE = 307, |
| 108 | SEMICOLON = 308, |
| 109 | TYPE = 309, |
| 110 | TYPE_TAG_ANY = 310, |
| 111 | TYPE_TAG_NONE = 311, |
| 112 | PERCENT_UNION = 312 |
The Android Open Source Project | cea198a | 2009-03-03 19:29:17 -0800 | [diff] [blame] | 113 | }; |
| 114 | #endif |
| 115 | /* Tokens. */ |
| 116 | #define GRAM_EOF 0 |
| 117 | #define STRING 258 |
| 118 | #define INT 259 |
| 119 | #define PERCENT_TOKEN 260 |
| 120 | #define PERCENT_NTERM 261 |
| 121 | #define PERCENT_TYPE 262 |
| 122 | #define PERCENT_DESTRUCTOR 263 |
| 123 | #define PERCENT_PRINTER 264 |
Ying Wang | 0543663 | 2013-04-05 16:01:00 -0700 | [diff] [blame] | 124 | #define PERCENT_LEFT 265 |
| 125 | #define PERCENT_RIGHT 266 |
| 126 | #define PERCENT_NONASSOC 267 |
| 127 | #define PERCENT_PREC 268 |
| 128 | #define PERCENT_DPREC 269 |
| 129 | #define PERCENT_MERGE 270 |
| 130 | #define PERCENT_CODE 271 |
The Android Open Source Project | cea198a | 2009-03-03 19:29:17 -0800 | [diff] [blame] | 131 | #define PERCENT_DEBUG 272 |
| 132 | #define PERCENT_DEFAULT_PREC 273 |
| 133 | #define PERCENT_DEFINE 274 |
| 134 | #define PERCENT_DEFINES 275 |
| 135 | #define PERCENT_ERROR_VERBOSE 276 |
| 136 | #define PERCENT_EXPECT 277 |
| 137 | #define PERCENT_EXPECT_RR 278 |
| 138 | #define PERCENT_FILE_PREFIX 279 |
| 139 | #define PERCENT_GLR_PARSER 280 |
| 140 | #define PERCENT_INITIAL_ACTION 281 |
Ying Wang | 0543663 | 2013-04-05 16:01:00 -0700 | [diff] [blame] | 141 | #define PERCENT_LANGUAGE 282 |
| 142 | #define PERCENT_LEX_PARAM 283 |
| 143 | #define PERCENT_LOCATIONS 284 |
| 144 | #define PERCENT_NAME_PREFIX 285 |
| 145 | #define PERCENT_NO_DEFAULT_PREC 286 |
| 146 | #define PERCENT_NO_LINES 287 |
| 147 | #define PERCENT_NONDETERMINISTIC_PARSER 288 |
| 148 | #define PERCENT_OUTPUT 289 |
| 149 | #define PERCENT_PARSE_PARAM 290 |
| 150 | #define PERCENT_PURE_PARSER 291 |
| 151 | #define PERCENT_REQUIRE 292 |
| 152 | #define PERCENT_SKELETON 293 |
| 153 | #define PERCENT_START 294 |
| 154 | #define PERCENT_TOKEN_TABLE 295 |
| 155 | #define PERCENT_VERBOSE 296 |
| 156 | #define PERCENT_YACC 297 |
| 157 | #define BRACED_CODE 298 |
| 158 | #define BRACKETED_ID 299 |
| 159 | #define CHAR 300 |
| 160 | #define EPILOGUE 301 |
| 161 | #define EQUAL 302 |
| 162 | #define ID 303 |
| 163 | #define ID_COLON 304 |
| 164 | #define PERCENT_PERCENT 305 |
| 165 | #define PIPE 306 |
| 166 | #define PROLOGUE 307 |
| 167 | #define SEMICOLON 308 |
| 168 | #define TYPE 309 |
| 169 | #define TYPE_TAG_ANY 310 |
| 170 | #define TYPE_TAG_NONE 311 |
| 171 | #define PERCENT_UNION 312 |
The Android Open Source Project | cea198a | 2009-03-03 19:29:17 -0800 | [diff] [blame] | 172 | |
| 173 | |
| 174 | |
Ying Wang | 0543663 | 2013-04-05 16:01:00 -0700 | [diff] [blame] | 175 | #if ! defined GRAM_STYPE && ! defined GRAM_STYPE_IS_DECLARED |
| 176 | typedef union GRAM_STYPE |
The Android Open Source Project | cea198a | 2009-03-03 19:29:17 -0800 | [diff] [blame] | 177 | { |
Ying Wang | 0543663 | 2013-04-05 16:01:00 -0700 | [diff] [blame] | 178 | /* Line 2042 of yacc.c */ |
| 179 | #line 115 "parse-gram.y" |
| 180 | |
The Android Open Source Project | cea198a | 2009-03-03 19:29:17 -0800 | [diff] [blame] | 181 | symbol *symbol; |
| 182 | symbol_list *list; |
| 183 | int integer; |
Ying Wang | 0543663 | 2013-04-05 16:01:00 -0700 | [diff] [blame] | 184 | char const *chars; |
| 185 | char *code; |
The Android Open Source Project | cea198a | 2009-03-03 19:29:17 -0800 | [diff] [blame] | 186 | assoc assoc; |
| 187 | uniqstr uniqstr; |
Ying Wang | 0543663 | 2013-04-05 16:01:00 -0700 | [diff] [blame] | 188 | unsigned char character; |
| 189 | named_ref *named_ref; |
| 190 | |
| 191 | |
| 192 | /* Line 2042 of yacc.c */ |
| 193 | #line 194 "parse-gram.h" |
| 194 | } GRAM_STYPE; |
| 195 | # define GRAM_STYPE_IS_TRIVIAL 1 |
| 196 | # define gram_stype GRAM_STYPE /* obsolescent; will be withdrawn */ |
| 197 | # define GRAM_STYPE_IS_DECLARED 1 |
The Android Open Source Project | cea198a | 2009-03-03 19:29:17 -0800 | [diff] [blame] | 198 | #endif |
| 199 | |
Ying Wang | 0543663 | 2013-04-05 16:01:00 -0700 | [diff] [blame] | 200 | #if ! defined GRAM_LTYPE && ! defined GRAM_LTYPE_IS_DECLARED |
| 201 | typedef struct GRAM_LTYPE |
The Android Open Source Project | cea198a | 2009-03-03 19:29:17 -0800 | [diff] [blame] | 202 | { |
| 203 | int first_line; |
| 204 | int first_column; |
| 205 | int last_line; |
| 206 | int last_column; |
Ying Wang | 0543663 | 2013-04-05 16:01:00 -0700 | [diff] [blame] | 207 | } GRAM_LTYPE; |
| 208 | # define gram_ltype GRAM_LTYPE /* obsolescent; will be withdrawn */ |
| 209 | # define GRAM_LTYPE_IS_DECLARED 1 |
| 210 | # define GRAM_LTYPE_IS_TRIVIAL 1 |
The Android Open Source Project | cea198a | 2009-03-03 19:29:17 -0800 | [diff] [blame] | 211 | #endif |
| 212 | |
| 213 | |
Ying Wang | 0543663 | 2013-04-05 16:01:00 -0700 | [diff] [blame] | 214 | #ifdef YYPARSE_PARAM |
| 215 | #if defined __STDC__ || defined __cplusplus |
| 216 | int gram_parse (void *YYPARSE_PARAM); |
| 217 | #else |
| 218 | int gram_parse (); |
| 219 | #endif |
| 220 | #else /* ! YYPARSE_PARAM */ |
| 221 | #if defined __STDC__ || defined __cplusplus |
| 222 | int gram_parse (void); |
| 223 | #else |
| 224 | int gram_parse (); |
| 225 | #endif |
| 226 | #endif /* ! YYPARSE_PARAM */ |
| 227 | |
| 228 | #endif /* !YY_GRAM__________SRC_PARSE_GRAM_H_INCLUDED */ |