1 /***************************************************************************** 2 3 Copyright (c) 1995, 2009, Innobase Oy. All Rights Reserved. 4 Copyright (c) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software 5 Foundation, Inc. 6 7 As a special exception, when this file is copied by Bison into a 8 Bison output file, you may use that output file without restriction. 9 This special exception was added by the Free Software Foundation 10 in version 1.24 of Bison. 11 12 This program is free software; you can redistribute it and/or modify it under 13 the terms of the GNU General Public License as published by the Free Software 14 Foundation; version 2 of the License. 15 16 This program is distributed in the hope that it will be useful, but WITHOUT 17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 18 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 19 20 You should have received a copy of the GNU General Public License along with 21 this program; if not, write to the Free Software Foundation, Inc., 22 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 23 24 *****************************************************************************/ 25 26 /* A Bison parser, made by GNU Bison 1.875d. */ 27 28 /* Tokens. */ 29 #ifndef YYTOKENTYPE 30 # define YYTOKENTYPE 31 /* Put the tokens into the symbol table, so that GDB and other debuggers 32 know about them. */ 33 enum yytokentype { 34 PARS_INT_LIT = 258, 35 PARS_FLOAT_LIT = 259, 36 PARS_STR_LIT = 260, 37 PARS_FIXBINARY_LIT = 261, 38 PARS_BLOB_LIT = 262, 39 PARS_NULL_LIT = 263, 40 PARS_ID_TOKEN = 264, 41 PARS_AND_TOKEN = 265, 42 PARS_OR_TOKEN = 266, 43 PARS_NOT_TOKEN = 267, 44 PARS_GE_TOKEN = 268, 45 PARS_LE_TOKEN = 269, 46 PARS_NE_TOKEN = 270, 47 PARS_PROCEDURE_TOKEN = 271, 48 PARS_IN_TOKEN = 272, 49 PARS_OUT_TOKEN = 273, 50 PARS_BINARY_TOKEN = 274, 51 PARS_BLOB_TOKEN = 275, 52 PARS_INT_TOKEN = 276, 53 PARS_INTEGER_TOKEN = 277, 54 PARS_FLOAT_TOKEN = 278, 55 PARS_CHAR_TOKEN = 279, 56 PARS_IS_TOKEN = 280, 57 PARS_BEGIN_TOKEN = 281, 58 PARS_END_TOKEN = 282, 59 PARS_IF_TOKEN = 283, 60 PARS_THEN_TOKEN = 284, 61 PARS_ELSE_TOKEN = 285, 62 PARS_ELSIF_TOKEN = 286, 63 PARS_LOOP_TOKEN = 287, 64 PARS_WHILE_TOKEN = 288, 65 PARS_RETURN_TOKEN = 289, 66 PARS_SELECT_TOKEN = 290, 67 PARS_SUM_TOKEN = 291, 68 PARS_COUNT_TOKEN = 292, 69 PARS_DISTINCT_TOKEN = 293, 70 PARS_FROM_TOKEN = 294, 71 PARS_WHERE_TOKEN = 295, 72 PARS_FOR_TOKEN = 296, 73 PARS_DDOT_TOKEN = 297, 74 PARS_READ_TOKEN = 298, 75 PARS_ORDER_TOKEN = 299, 76 PARS_BY_TOKEN = 300, 77 PARS_ASC_TOKEN = 301, 78 PARS_DESC_TOKEN = 302, 79 PARS_INSERT_TOKEN = 303, 80 PARS_INTO_TOKEN = 304, 81 PARS_VALUES_TOKEN = 305, 82 PARS_UPDATE_TOKEN = 306, 83 PARS_SET_TOKEN = 307, 84 PARS_DELETE_TOKEN = 308, 85 PARS_CURRENT_TOKEN = 309, 86 PARS_OF_TOKEN = 310, 87 PARS_CREATE_TOKEN = 311, 88 PARS_TABLE_TOKEN = 312, 89 PARS_INDEX_TOKEN = 313, 90 PARS_UNIQUE_TOKEN = 314, 91 PARS_CLUSTERED_TOKEN = 315, 92 PARS_DOES_NOT_FIT_IN_MEM_TOKEN = 316, 93 PARS_ON_TOKEN = 317, 94 PARS_ASSIGN_TOKEN = 318, 95 PARS_DECLARE_TOKEN = 319, 96 PARS_CURSOR_TOKEN = 320, 97 PARS_SQL_TOKEN = 321, 98 PARS_OPEN_TOKEN = 322, 99 PARS_FETCH_TOKEN = 323, 100 PARS_CLOSE_TOKEN = 324, 101 PARS_NOTFOUND_TOKEN = 325, 102 PARS_TO_CHAR_TOKEN = 326, 103 PARS_TO_NUMBER_TOKEN = 327, 104 PARS_TO_BINARY_TOKEN = 328, 105 PARS_BINARY_TO_NUMBER_TOKEN = 329, 106 PARS_SUBSTR_TOKEN = 330, 107 PARS_REPLSTR_TOKEN = 331, 108 PARS_CONCAT_TOKEN = 332, 109 PARS_INSTR_TOKEN = 333, 110 PARS_LENGTH_TOKEN = 334, 111 PARS_SYSDATE_TOKEN = 335, 112 PARS_PRINTF_TOKEN = 336, 113 PARS_ASSERT_TOKEN = 337, 114 PARS_RND_TOKEN = 338, 115 PARS_RND_STR_TOKEN = 339, 116 PARS_ROW_PRINTF_TOKEN = 340, 117 PARS_COMMIT_TOKEN = 341, 118 PARS_ROLLBACK_TOKEN = 342, 119 PARS_WORK_TOKEN = 343, 120 PARS_UNSIGNED_TOKEN = 344, 121 PARS_EXIT_TOKEN = 345, 122 PARS_FUNCTION_TOKEN = 346, 123 PARS_LOCK_TOKEN = 347, 124 PARS_SHARE_TOKEN = 348, 125 PARS_MODE_TOKEN = 349, 126 NEG = 350 127 }; 128 #endif 129 #define PARS_INT_LIT 258 130 #define PARS_FLOAT_LIT 259 131 #define PARS_STR_LIT 260 132 #define PARS_FIXBINARY_LIT 261 133 #define PARS_BLOB_LIT 262 134 #define PARS_NULL_LIT 263 135 #define PARS_ID_TOKEN 264 136 #define PARS_AND_TOKEN 265 137 #define PARS_OR_TOKEN 266 138 #define PARS_NOT_TOKEN 267 139 #define PARS_GE_TOKEN 268 140 #define PARS_LE_TOKEN 269 141 #define PARS_NE_TOKEN 270 142 #define PARS_PROCEDURE_TOKEN 271 143 #define PARS_IN_TOKEN 272 144 #define PARS_OUT_TOKEN 273 145 #define PARS_BINARY_TOKEN 274 146 #define PARS_BLOB_TOKEN 275 147 #define PARS_INT_TOKEN 276 148 #define PARS_INTEGER_TOKEN 277 149 #define PARS_FLOAT_TOKEN 278 150 #define PARS_CHAR_TOKEN 279 151 #define PARS_IS_TOKEN 280 152 #define PARS_BEGIN_TOKEN 281 153 #define PARS_END_TOKEN 282 154 #define PARS_IF_TOKEN 283 155 #define PARS_THEN_TOKEN 284 156 #define PARS_ELSE_TOKEN 285 157 #define PARS_ELSIF_TOKEN 286 158 #define PARS_LOOP_TOKEN 287 159 #define PARS_WHILE_TOKEN 288 160 #define PARS_RETURN_TOKEN 289 161 #define PARS_SELECT_TOKEN 290 162 #define PARS_SUM_TOKEN 291 163 #define PARS_COUNT_TOKEN 292 164 #define PARS_DISTINCT_TOKEN 293 165 #define PARS_FROM_TOKEN 294 166 #define PARS_WHERE_TOKEN 295 167 #define PARS_FOR_TOKEN 296 168 #define PARS_DDOT_TOKEN 297 169 #define PARS_READ_TOKEN 298 170 #define PARS_ORDER_TOKEN 299 171 #define PARS_BY_TOKEN 300 172 #define PARS_ASC_TOKEN 301 173 #define PARS_DESC_TOKEN 302 174 #define PARS_INSERT_TOKEN 303 175 #define PARS_INTO_TOKEN 304 176 #define PARS_VALUES_TOKEN 305 177 #define PARS_UPDATE_TOKEN 306 178 #define PARS_SET_TOKEN 307 179 #define PARS_DELETE_TOKEN 308 180 #define PARS_CURRENT_TOKEN 309 181 #define PARS_OF_TOKEN 310 182 #define PARS_CREATE_TOKEN 311 183 #define PARS_TABLE_TOKEN 312 184 #define PARS_INDEX_TOKEN 313 185 #define PARS_UNIQUE_TOKEN 314 186 #define PARS_CLUSTERED_TOKEN 315 187 #define PARS_DOES_NOT_FIT_IN_MEM_TOKEN 316 188 #define PARS_ON_TOKEN 317 189 #define PARS_ASSIGN_TOKEN 318 190 #define PARS_DECLARE_TOKEN 319 191 #define PARS_CURSOR_TOKEN 320 192 #define PARS_SQL_TOKEN 321 193 #define PARS_OPEN_TOKEN 322 194 #define PARS_FETCH_TOKEN 323 195 #define PARS_CLOSE_TOKEN 324 196 #define PARS_NOTFOUND_TOKEN 325 197 #define PARS_TO_CHAR_TOKEN 326 198 #define PARS_TO_NUMBER_TOKEN 327 199 #define PARS_TO_BINARY_TOKEN 328 200 #define PARS_BINARY_TO_NUMBER_TOKEN 329 201 #define PARS_SUBSTR_TOKEN 330 202 #define PARS_REPLSTR_TOKEN 331 203 #define PARS_CONCAT_TOKEN 332 204 #define PARS_INSTR_TOKEN 333 205 #define PARS_LENGTH_TOKEN 334 206 #define PARS_SYSDATE_TOKEN 335 207 #define PARS_PRINTF_TOKEN 336 208 #define PARS_ASSERT_TOKEN 337 209 #define PARS_RND_TOKEN 338 210 #define PARS_RND_STR_TOKEN 339 211 #define PARS_ROW_PRINTF_TOKEN 340 212 #define PARS_COMMIT_TOKEN 341 213 #define PARS_ROLLBACK_TOKEN 342 214 #define PARS_WORK_TOKEN 343 215 #define PARS_UNSIGNED_TOKEN 344 216 #define PARS_EXIT_TOKEN 345 217 #define PARS_FUNCTION_TOKEN 346 218 #define PARS_LOCK_TOKEN 347 219 #define PARS_SHARE_TOKEN 348 220 #define PARS_MODE_TOKEN 349 221 #define NEG 350 222 223 224 225 226 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) 227 typedef int YYSTYPE; 228 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ 229 # define YYSTYPE_IS_DECLARED 1 230 # define YYSTYPE_IS_TRIVIAL 1 231 #endif 232 233 extern YYSTYPE yylval; 234 235 236 237