You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

234 lines
6.8 KiB

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