pars0grm.c
上传用户:tsgydb
上传日期:2007-04-14
资源大小:10674k
文件大小:59k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. /*  A Bison parser, made from pars0grm.y
  2.  by  GNU Bison version 1.25
  3.   */
  4. #define YYBISON 1  /* Identify Bison output.  */
  5. #define PARS_INT_LIT 258
  6. #define PARS_FLOAT_LIT 259
  7. #define PARS_STR_LIT 260
  8. #define PARS_NULL_LIT 261
  9. #define PARS_ID_TOKEN 262
  10. #define PARS_AND_TOKEN 263
  11. #define PARS_OR_TOKEN 264
  12. #define PARS_NOT_TOKEN 265
  13. #define PARS_GE_TOKEN 266
  14. #define PARS_LE_TOKEN 267
  15. #define PARS_NE_TOKEN 268
  16. #define PARS_PROCEDURE_TOKEN 269
  17. #define PARS_IN_TOKEN 270
  18. #define PARS_OUT_TOKEN 271
  19. #define PARS_INT_TOKEN 272
  20. #define PARS_INTEGER_TOKEN 273
  21. #define PARS_FLOAT_TOKEN 274
  22. #define PARS_CHAR_TOKEN 275
  23. #define PARS_IS_TOKEN 276
  24. #define PARS_BEGIN_TOKEN 277
  25. #define PARS_END_TOKEN 278
  26. #define PARS_IF_TOKEN 279
  27. #define PARS_THEN_TOKEN 280
  28. #define PARS_ELSE_TOKEN 281
  29. #define PARS_ELSIF_TOKEN 282
  30. #define PARS_LOOP_TOKEN 283
  31. #define PARS_WHILE_TOKEN 284
  32. #define PARS_RETURN_TOKEN 285
  33. #define PARS_SELECT_TOKEN 286
  34. #define PARS_SUM_TOKEN 287
  35. #define PARS_COUNT_TOKEN 288
  36. #define PARS_DISTINCT_TOKEN 289
  37. #define PARS_FROM_TOKEN 290
  38. #define PARS_WHERE_TOKEN 291
  39. #define PARS_FOR_TOKEN 292
  40. #define PARS_DDOT_TOKEN 293
  41. #define PARS_CONSISTENT_TOKEN 294
  42. #define PARS_READ_TOKEN 295
  43. #define PARS_ORDER_TOKEN 296
  44. #define PARS_BY_TOKEN 297
  45. #define PARS_ASC_TOKEN 298
  46. #define PARS_DESC_TOKEN 299
  47. #define PARS_INSERT_TOKEN 300
  48. #define PARS_INTO_TOKEN 301
  49. #define PARS_VALUES_TOKEN 302
  50. #define PARS_UPDATE_TOKEN 303
  51. #define PARS_SET_TOKEN 304
  52. #define PARS_DELETE_TOKEN 305
  53. #define PARS_CURRENT_TOKEN 306
  54. #define PARS_OF_TOKEN 307
  55. #define PARS_CREATE_TOKEN 308
  56. #define PARS_TABLE_TOKEN 309
  57. #define PARS_INDEX_TOKEN 310
  58. #define PARS_UNIQUE_TOKEN 311
  59. #define PARS_CLUSTERED_TOKEN 312
  60. #define PARS_DOES_NOT_FIT_IN_MEM_TOKEN 313
  61. #define PARS_ON_TOKEN 314
  62. #define PARS_ASSIGN_TOKEN 315
  63. #define PARS_DECLARE_TOKEN 316
  64. #define PARS_CURSOR_TOKEN 317
  65. #define PARS_SQL_TOKEN 318
  66. #define PARS_OPEN_TOKEN 319
  67. #define PARS_FETCH_TOKEN 320
  68. #define PARS_CLOSE_TOKEN 321
  69. #define PARS_NOTFOUND_TOKEN 322
  70. #define PARS_TO_CHAR_TOKEN 323
  71. #define PARS_TO_NUMBER_TOKEN 324
  72. #define PARS_TO_BINARY_TOKEN 325
  73. #define PARS_BINARY_TO_NUMBER_TOKEN 326
  74. #define PARS_SUBSTR_TOKEN 327
  75. #define PARS_REPLSTR_TOKEN 328
  76. #define PARS_CONCAT_TOKEN 329
  77. #define PARS_INSTR_TOKEN 330
  78. #define PARS_LENGTH_TOKEN 331
  79. #define PARS_SYSDATE_TOKEN 332
  80. #define PARS_PRINTF_TOKEN 333
  81. #define PARS_ASSERT_TOKEN 334
  82. #define PARS_RND_TOKEN 335
  83. #define PARS_RND_STR_TOKEN 336
  84. #define PARS_ROW_PRINTF_TOKEN 337
  85. #define PARS_COMMIT_TOKEN 338
  86. #define PARS_ROLLBACK_TOKEN 339
  87. #define PARS_WORK_TOKEN 340
  88. #define NEG 341
  89. #line 9 "pars0grm.y"
  90. /* The value of the semantic attribute is a pointer to a query tree node
  91. que_node_t */
  92. #define YYSTYPE que_node_t*
  93. #define alloca mem_alloc
  94. #include <math.h>
  95. #include "univ.i"
  96. #include "pars0pars.h"
  97. #include "mem0mem.h"
  98. #include "que0types.h"
  99. #include "que0que.h"
  100. #include "row0sel.h"
  101. /* #define __STDC__ */
  102. int
  103. yylex(void);
  104. #ifndef YYSTYPE
  105. #define YYSTYPE int
  106. #endif
  107. #include <stdio.h>
  108. #ifndef __cplusplus
  109. #ifndef __STDC__
  110. #define const
  111. #endif
  112. #endif
  113. #define YYFINAL 311
  114. #define YYFLAG -32768
  115. #define YYNTBASE 102
  116. #define YYTRANSLATE(x) ((unsigned)(x) <= 341 ? yytranslate[x] : 163)
  117. static const char yytranslate[] = {     0,
  118.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  119.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  120.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  121.      2,     2,     2,     2,     2,     2,    94,     2,     2,    96,
  122.     97,    91,    90,    99,    89,     2,    92,     2,     2,     2,
  123.      2,     2,     2,     2,     2,     2,     2,     2,    95,    87,
  124.     86,    88,    98,     2,     2,     2,     2,     2,     2,     2,
  125.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  126.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  127.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  128.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  129.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  130.      2,     2,   100,     2,   101,     2,     2,     2,     2,     2,
  131.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  132.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  133.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  134.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  135.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  136.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  137.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  138.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  139.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  140.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  141.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  142.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  143.      2,     2,     2,     2,     2,     1,     2,     3,     4,     5,
  144.      6,     7,     8,     9,    10,    11,    12,    13,    14,    15,
  145.     16,    17,    18,    19,    20,    21,    22,    23,    24,    25,
  146.     26,    27,    28,    29,    30,    31,    32,    33,    34,    35,
  147.     36,    37,    38,    39,    40,    41,    42,    43,    44,    45,
  148.     46,    47,    48,    49,    50,    51,    52,    53,    54,    55,
  149.     56,    57,    58,    59,    60,    61,    62,    63,    64,    65,
  150.     66,    67,    68,    69,    70,    71,    72,    73,    74,    75,
  151.     76,    77,    78,    79,    80,    81,    82,    83,    84,    85,
  152.     93
  153. };
  154. #if YYDEBUG != 0
  155. static const short yyprhs[] = {     0,
  156.      0,     3,     5,     8,    11,    14,    17,    20,    23,    26,
  157.     29,    32,    35,    38,    41,    44,    47,    50,    53,    56,
  158.     59,    62,    65,    67,    70,    72,    77,    79,    81,    83,
  159.     85,    87,    91,    95,    99,   103,   106,   110,   114,   118,
  160.    122,   126,   130,   134,   138,   142,   145,   149,   153,   155,
  161.    157,   159,   161,   163,   165,   167,   169,   171,   173,   175,
  162.    176,   178,   182,   189,   194,   196,   198,   200,   202,   206,
  163.    207,   209,   213,   214,   216,   220,   222,   227,   233,   238,
  164.    239,   241,   245,   247,   251,   253,   254,   257,   258,   261,
  165.    262,   265,   266,   268,   270,   271,   276,   285,   289,   295,
  166.    298,   302,   304,   308,   313,   318,   321,   324,   328,   331,
  167.    334,   337,   341,   346,   348,   351,   352,   355,   357,   365,
  168.    372,   383,   385,   388,   391,   396,   399,   401,   405,   406,
  169.    408,   416,   418,   422,   423,   425,   426,   428,   439,   442,
  170.    445,   447,   449,   453,   457,   458,   460,   464,   468,   469,
  171.    471,   474,   481,   482,   484,   487
  172. };
  173. static const short yyrhs[] = {   162,
  174.     95,     0,   107,     0,   108,    95,     0,   139,    95,     0,
  175.    140,    95,     0,   138,    95,     0,   141,    95,     0,   134,
  176.     95,     0,   121,    95,     0,   123,    95,     0,   133,    95,
  177.      0,   131,    95,     0,   132,    95,     0,   128,    95,     0,
  178.    129,    95,     0,   142,    95,     0,   144,    95,     0,   143,
  179.     95,     0,   153,    95,     0,   154,    95,     0,   148,    95,
  180.      0,   152,    95,     0,   102,     0,   103,   102,     0,     7,
  181.      0,   105,    96,   112,    97,     0,     3,     0,     4,     0,
  182.      5,     0,     6,     0,    63,     0,   104,    90,   104,     0,
  183.    104,    89,   104,     0,   104,    91,   104,     0,   104,    92,
  184.    104,     0,    89,   104,     0,    96,   104,    97,     0,   104,
  185.     86,   104,     0,   104,    87,   104,     0,   104,    88,   104,
  186.      0,   104,    11,   104,     0,   104,    12,   104,     0,   104,
  187.     13,   104,     0,   104,     8,   104,     0,   104,     9,   104,
  188.      0,    10,   104,     0,     7,    94,    67,     0,    63,    94,
  189.     67,     0,    68,     0,    69,     0,    70,     0,    71,     0,
  190.     72,     0,    74,     0,    75,     0,    76,     0,    77,     0,
  191.     80,     0,    81,     0,     0,    98,     0,   106,    99,    98,
  192.      0,   100,     7,    96,   106,    97,   101,     0,   109,    96,
  193.    112,    97,     0,    73,     0,    78,     0,    79,     0,     7,
  194.      0,   110,    99,     7,     0,     0,     7,     0,   111,    99,
  195.      7,     0,     0,   104,     0,   112,    99,   104,     0,   104,
  196.      0,    33,    96,    91,    97,     0,    33,    96,    34,     7,
  197.     97,     0,    32,    96,   104,    97,     0,     0,   113,     0,
  198.    114,    99,   113,     0,    91,     0,   114,    46,   111,     0,
  199.    114,     0,     0,    36,   104,     0,     0,    37,    48,     0,
  200.      0,    39,    40,     0,     0,    43,     0,    44,     0,     0,
  201.     41,    42,     7,   119,     0,    31,   115,    35,   110,   116,
  202.    117,   118,   120,     0,    45,    46,     7,     0,   122,    47,
  203.     96,   112,    97,     0,   122,   121,     0,     7,    86,   104,
  204.      0,   124,     0,   125,    99,   124,     0,    36,    51,    52,
  205.      7,     0,    48,     7,    49,   125,     0,   127,   116,     0,
  206.    127,   126,     0,    50,    35,     7,     0,   130,   116,     0,
  207.    130,   126,     0,    82,   121,     0,     7,    60,   104,     0,
  208.     27,   104,    25,   103,     0,   135,     0,   136,   135,     0,
  209.      0,    26,   103,     0,   136,     0,    24,   104,    25,   103,
  210.    137,    23,    24,     0,    29,   104,    28,   103,    23,    28,
  211.      0,    37,     7,    15,   104,    38,   104,    28,   103,    23,
  212.     28,     0,    30,     0,    64,     7,     0,    66,     7,     0,
  213.     65,     7,    46,   111,     0,     7,   155,     0,   145,     0,
  214.    146,    99,   145,     0,     0,    58,     0,    53,    54,     7,
  215.     96,   146,    97,   147,     0,     7,     0,   149,    99,     7,
  216.      0,     0,    56,     0,     0,    57,     0,    53,   150,   151,
  217.     55,     7,    59,     7,    96,   149,    97,     0,    83,    85,
  218.      0,    84,    85,     0,    17,     0,    20,     0,     7,    15,
  219.    155,     0,     7,    16,   155,     0,     0,   156,     0,   157,
  220.     99,   156,     0,     7,   155,    95,     0,     0,   158,     0,
  221.    159,   158,     0,    61,    62,     7,    21,   121,    95,     0,
  222.      0,   160,     0,   161,   160,     0,    14,     7,    96,   157,
  223.     97,    21,   159,   161,    22,   103,    23,     0
  224. };
  225. #endif
  226. #if YYDEBUG != 0
  227. static const short yyrline[] = { 0,
  228.    125,   127,   128,   129,   130,   131,   132,   133,   134,   135,
  229.    136,   137,   138,   139,   140,   141,   142,   143,   144,   145,
  230.    146,   147,   150,   152,   156,   158,   160,   161,   162,   163,
  231.    164,   165,   166,   167,   168,   169,   170,   171,   172,   173,
  232.    174,   175,   176,   177,   178,   179,   180,   182,   186,   188,
  233.    189,   190,   192,   193,   194,   195,   196,   197,   198,   201,
  234.    203,   204,   207,   212,   217,   219,   220,   223,   225,   229,
  235.    231,   232,   236,   238,   239,   242,   244,   249,   255,   261,
  236.    263,   264,   268,   271,   273,   276,   278,   281,   283,   287,
  237.    289,   293,   295,   296,   299,   301,   305,   315,   320,   323,
  238.    327,   331,   333,   337,   343,   350,   355,   360,   366,   371,
  239.    376,   381,   386,   392,   394,   398,   400,   402,   405,   412,
  240.    418,   426,   430,   436,   442,   447,   451,   453,   457,   459,
  241.    464,   470,   472,   476,   478,   481,   483,   486,   494,   499,
  242.    504,   506,   509,   513,   518,   520,   521,   525,   530,   532,
  243.    533,   536,   542,   544,   545,   548
  244. };
  245. #endif
  246. #if YYDEBUG != 0 || defined (YYERROR_VERBOSE)
  247. static const char * const yytname[] = {   "$","error","$undefined.","PARS_INT_LIT",
  248. "PARS_FLOAT_LIT","PARS_STR_LIT","PARS_NULL_LIT","PARS_ID_TOKEN","PARS_AND_TOKEN",
  249. "PARS_OR_TOKEN","PARS_NOT_TOKEN","PARS_GE_TOKEN","PARS_LE_TOKEN","PARS_NE_TOKEN",
  250. "PARS_PROCEDURE_TOKEN","PARS_IN_TOKEN","PARS_OUT_TOKEN","PARS_INT_TOKEN","PARS_INTEGER_TOKEN",
  251. "PARS_FLOAT_TOKEN","PARS_CHAR_TOKEN","PARS_IS_TOKEN","PARS_BEGIN_TOKEN","PARS_END_TOKEN",
  252. "PARS_IF_TOKEN","PARS_THEN_TOKEN","PARS_ELSE_TOKEN","PARS_ELSIF_TOKEN","PARS_LOOP_TOKEN",
  253. "PARS_WHILE_TOKEN","PARS_RETURN_TOKEN","PARS_SELECT_TOKEN","PARS_SUM_TOKEN",
  254. "PARS_COUNT_TOKEN","PARS_DISTINCT_TOKEN","PARS_FROM_TOKEN","PARS_WHERE_TOKEN",
  255. "PARS_FOR_TOKEN","PARS_DDOT_TOKEN","PARS_CONSISTENT_TOKEN","PARS_READ_TOKEN",
  256. "PARS_ORDER_TOKEN","PARS_BY_TOKEN","PARS_ASC_TOKEN","PARS_DESC_TOKEN","PARS_INSERT_TOKEN",
  257. "PARS_INTO_TOKEN","PARS_VALUES_TOKEN","PARS_UPDATE_TOKEN","PARS_SET_TOKEN","PARS_DELETE_TOKEN",
  258. "PARS_CURRENT_TOKEN","PARS_OF_TOKEN","PARS_CREATE_TOKEN","PARS_TABLE_TOKEN",
  259. "PARS_INDEX_TOKEN","PARS_UNIQUE_TOKEN","PARS_CLUSTERED_TOKEN","PARS_DOES_NOT_FIT_IN_MEM_TOKEN",
  260. "PARS_ON_TOKEN","PARS_ASSIGN_TOKEN","PARS_DECLARE_TOKEN","PARS_CURSOR_TOKEN",
  261. "PARS_SQL_TOKEN","PARS_OPEN_TOKEN","PARS_FETCH_TOKEN","PARS_CLOSE_TOKEN","PARS_NOTFOUND_TOKEN",
  262. "PARS_TO_CHAR_TOKEN","PARS_TO_NUMBER_TOKEN","PARS_TO_BINARY_TOKEN","PARS_BINARY_TO_NUMBER_TOKEN",
  263. "PARS_SUBSTR_TOKEN","PARS_REPLSTR_TOKEN","PARS_CONCAT_TOKEN","PARS_INSTR_TOKEN",
  264. "PARS_LENGTH_TOKEN","PARS_SYSDATE_TOKEN","PARS_PRINTF_TOKEN","PARS_ASSERT_TOKEN",
  265. "PARS_RND_TOKEN","PARS_RND_STR_TOKEN","PARS_ROW_PRINTF_TOKEN","PARS_COMMIT_TOKEN",
  266. "PARS_ROLLBACK_TOKEN","PARS_WORK_TOKEN","'='","'<'","'>'","'-'","'+'","'*'",
  267. "'/'","NEG","'%'","';'","'('","')'","'?'","','","'{'","'}'","statement","statement_list",
  268. "exp","function_name","question_mark_list","stored_procedure_call","predefined_procedure_call",
  269. "predefined_procedure_name","table_list","variable_list","exp_list","select_item",
  270. "select_item_list","select_list","search_condition","for_update_clause","consistent_read_clause",
  271. "order_direction","order_by_clause","select_statement","insert_statement_start",
  272. "insert_statement","column_assignment","column_assignment_list","cursor_positioned",
  273. "update_statement_start","update_statement_searched","update_statement_positioned",
  274. "delete_statement_start","delete_statement_searched","delete_statement_positioned",
  275. "row_printf_statement","assignment_statement","elsif_element","elsif_list","else_part",
  276. "if_statement","while_statement","for_statement","return_statement","open_cursor_statement",
  277. "close_cursor_statement","fetch_statement","column_def","column_def_list","not_fit_in_memory",
  278. "create_table","column_list","unique_def","clustered_def","create_index","commit_statement",
  279. "rollback_statement","type_name","parameter_declaration","parameter_declaration_list",
  280. "variable_declaration","variable_declaration_list","cursor_declaration","declaration_list",
  281. "procedure_definition", NULL
  282. };
  283. #endif
  284. static const short yyr1[] = {     0,
  285.    102,   102,   102,   102,   102,   102,   102,   102,   102,   102,
  286.    102,   102,   102,   102,   102,   102,   102,   102,   102,   102,
  287.    102,   102,   103,   103,   104,   104,   104,   104,   104,   104,
  288.    104,   104,   104,   104,   104,   104,   104,   104,   104,   104,
  289.    104,   104,   104,   104,   104,   104,   104,   104,   105,   105,
  290.    105,   105,   105,   105,   105,   105,   105,   105,   105,   106,
  291.    106,   106,   107,   108,   109,   109,   109,   110,   110,   111,
  292.    111,   111,   112,   112,   112,   113,   113,   113,   113,   114,
  293.    114,   114,   115,   115,   115,   116,   116,   117,   117,   118,
  294.    118,   119,   119,   119,   120,   120,   121,   122,   123,   123,
  295.    124,   125,   125,   126,   127,   128,   129,   130,   131,   132,
  296.    133,   134,   135,   136,   136,   137,   137,   137,   138,   139,
  297.    140,   141,   142,   143,   144,   145,   146,   146,   147,   147,
  298.    148,   149,   149,   150,   150,   151,   151,   152,   153,   154,
  299.    155,   155,   156,   156,   157,   157,   157,   158,   159,   159,
  300.    159,   160,   161,   161,   161,   162
  301. };
  302. static const short yyr2[] = {     0,
  303.      2,     1,     2,     2,     2,     2,     2,     2,     2,     2,
  304.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  305.      2,     2,     1,     2,     1,     4,     1,     1,     1,     1,
  306.      1,     3,     3,     3,     3,     2,     3,     3,     3,     3,
  307.      3,     3,     3,     3,     3,     2,     3,     3,     1,     1,
  308.      1,     1,     1,     1,     1,     1,     1,     1,     1,     0,
  309.      1,     3,     6,     4,     1,     1,     1,     1,     3,     0,
  310.      1,     3,     0,     1,     3,     1,     4,     5,     4,     0,
  311.      1,     3,     1,     3,     1,     0,     2,     0,     2,     0,
  312.      2,     0,     1,     1,     0,     4,     8,     3,     5,     2,
  313.      3,     1,     3,     4,     4,     2,     2,     3,     2,     2,
  314.      2,     3,     4,     1,     2,     0,     2,     1,     7,     6,
  315.     10,     1,     2,     2,     4,     2,     1,     3,     0,     1,
  316.      7,     1,     3,     0,     1,     0,     1,    10,     2,     2,
  317.      1,     1,     3,     3,     0,     1,     3,     3,     0,     1,
  318.      2,     6,     0,     1,     2,    11
  319. };
  320. static const short yydefact[] = {     0,
  321.      0,     0,     0,     0,   122,    80,     0,     0,     0,     0,
  322.    134,     0,     0,     0,    65,    66,    67,     0,     0,     0,
  323.      0,     2,     0,     0,     0,     0,     0,    86,     0,     0,
  324.     86,     0,     0,     0,     0,     0,     0,     0,     0,     0,
  325.      0,     0,     0,     0,     0,     0,     0,     0,     0,    27,
  326.     28,    29,    30,    25,     0,    31,    49,    50,    51,    52,
  327.     53,    54,    55,    56,    57,    58,    59,     0,     0,     0,
  328.      0,     0,     0,     0,    83,    76,    81,    85,     0,     0,
  329.      0,     0,     0,     0,   135,   136,   123,     0,   124,   111,
  330.    139,   140,     0,     3,    73,     9,     0,   100,    10,     0,
  331.    106,   107,    14,    15,   109,   110,    12,    13,    11,     8,
  332.      6,     4,     5,     7,    16,    18,    17,    21,    22,    19,
  333.     20,     1,   112,   145,     0,    46,     0,    36,     0,     0,
  334.      0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
  335.      0,     0,    73,     0,     0,     0,    70,     0,     0,     0,
  336.     98,     0,   108,     0,   137,     0,    70,    60,    74,     0,
  337.     73,     0,    87,     0,   146,     0,    47,    48,    37,    44,
  338.     45,    41,    42,    43,    23,   116,    38,    39,    40,    33,
  339.     32,    34,    35,     0,     0,     0,     0,     0,    71,    84,
  340.     82,    68,    86,     0,     0,   102,   105,     0,     0,   125,
  341.     61,     0,    64,     0,     0,     0,     0,     0,     0,     0,
  342.      0,     0,    24,   114,   118,     0,    26,     0,    79,     0,
  343.     77,     0,     0,     0,    88,     0,     0,     0,     0,   127,
  344.      0,     0,     0,     0,    75,    99,   104,   141,   142,   143,
  345.    144,   149,   147,   117,     0,   115,     0,   120,    78,    72,
  346.     69,     0,    90,     0,   101,   103,   126,   129,     0,     0,
  347.     63,    62,     0,   150,   153,     0,   119,    89,     0,    95,
  348.      0,   130,   131,   128,     0,     0,     0,   151,   154,     0,
  349.    113,    91,     0,    97,     0,     0,   148,     0,     0,   155,
  350.      0,     0,   132,     0,     0,     0,    92,   121,   138,     0,
  351.      0,   156,    93,    94,    96,   133,     0,   152,     0,     0,
  352.      0
  353. };
  354. static const short yydefgoto[] = {   175,
  355.    176,   159,    71,   202,    22,    23,    24,   193,   190,   160,
  356.     77,    78,    79,   101,   253,   270,   305,   284,    25,    26,
  357.     27,   196,   197,   102,    28,    29,    30,    31,    32,    33,
  358.     34,    35,   214,   215,   216,    36,    37,    38,    39,    40,
  359.     41,    42,   230,   231,   273,    43,   294,    86,   156,    44,
  360.     45,    46,   240,   165,   166,   264,   265,   279,   280,    47
  361. };
  362. static const short yypact[] = {   443,
  363.    -36,    39,   479,   479,-32768,     7,    45,    10,    54,    28,
  364.    -28,    57,    59,    66,-32768,-32768,-32768,    49,    12,    15,
  365.     88,-32768,    16,     6,    21,     3,    22,    84,    26,    27,
  366.     84,    29,    30,    31,    33,    47,    48,    51,    53,    56,
  367.     58,    60,    62,    64,    65,    67,    68,   479,    71,-32768,
  368. -32768,-32768,-32768,    70,   479,    75,-32768,-32768,-32768,-32768,
  369. -32768,-32768,-32768,-32768,-32768,-32768,-32768,   479,   479,   293,
  370.     74,   502,    76,    77,-32768,   356,-32768,   -25,   117,   108,
  371.    147,   107,   154,   164,-32768,   122,-32768,   128,-32768,-32768,
  372. -32768,-32768,    87,-32768,   479,-32768,    90,-32768,-32768,    38,
  373. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  374. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  375. -32768,-32768,   356,   177,   120,   550,   131,   176,   234,   479,
  376.    479,   479,   479,   479,   443,   479,   479,   479,   479,   479,
  377.    479,   479,   479,   443,   479,   -26,   188,   187,   193,   479,
  378. -32768,   195,-32768,   109,-32768,   152,   188,   110,   356,   -70,
  379.    479,   157,   356,    20,-32768,   -67,-32768,-32768,-32768,   550,
  380.    550,     2,     2,   356,-32768,   151,     2,     2,     2,    -6,
  381.     -6,   176,   176,   -66,   263,   490,   199,   113,-32768,   114,
  382. -32768,-32768,   -30,   520,   126,-32768,   115,   211,   214,   114,
  383. -32768,   -48,-32768,   479,   -44,   216,     5,     5,   206,   177,
  384.    443,   479,-32768,-32768,   201,   208,-32768,   204,-32768,   139,
  385. -32768,   230,   479,   231,   202,   479,   479,   195,     5,-32768,
  386.    -40,   181,   140,   150,   356,-32768,-32768,-32768,-32768,-32768,
  387. -32768,   242,-32768,   443,   527,-32768,   228,-32768,-32768,-32768,
  388. -32768,   205,   215,   558,   356,-32768,-32768,   207,   211,   253,
  389. -32768,-32768,     5,-32768,    11,   443,-32768,-32768,   226,   232,
  390.    443,-32768,-32768,-32768,   173,   179,   209,-32768,-32768,    -3,
  391.    443,-32768,   233,-32768,   325,   265,-32768,   271,   443,-32768,
  392.    272,   252,-32768,   -37,   261,   387,    61,-32768,-32768,   281,
  393.     49,-32768,-32768,-32768,-32768,-32768,   194,-32768,   290,   291,
  394. -32768
  395. };
  396. static const short yypgoto[] = {     0,
  397.   -121,    -1,-32768,-32768,-32768,-32768,-32768,-32768,   138,  -123,
  398.    149,-32768,-32768,   -27,-32768,-32768,-32768,-32768,   -17,-32768,
  399. -32768,    79,-32768,   267,-32768,-32768,-32768,-32768,-32768,-32768,
  400. -32768,-32768,    94,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  401. -32768,-32768,    40,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  402. -32768,-32768,  -192,    93,-32768,    50,-32768,    32,-32768,-32768
  403. };
  404. #define YYLAST 650
  405. static const short yytable[] = {   309,
  406.     90,    70,    72,   105,    76,   223,   134,   187,    98,    50,
  407.     51,    52,    53,    54,   134,   241,    55,   263,   289,   184,
  408.    147,   238,   185,    48,   239,    84,   203,    85,   204,   209,
  409.    217,   210,   204,     6,   207,   208,   257,   205,    73,    74,
  410.     50,    51,    52,    53,    54,    49,   123,    55,   233,    97,
  411.    234,    80,   236,   126,   204,    81,   258,   277,   259,   299,
  412.     82,   300,    83,    87,   188,    88,   128,   129,   224,    56,
  413.    276,   277,    89,   148,    57,    58,    59,    60,    61,     6,
  414.     62,    63,    64,    65,   141,   142,    66,    67,   162,   244,
  415.    139,   140,   141,   142,    93,    68,    91,    75,   163,    92,
  416.     56,    95,    69,   303,   304,    57,    58,    59,    60,    61,
  417.     94,    62,    63,    64,    65,    96,    99,    66,    67,   100,
  418.    103,   104,   150,   107,   108,   109,    68,   110,   170,   171,
  419.    172,   173,   174,    69,   177,   178,   179,   180,   181,   182,
  420.    183,   111,   112,   186,   281,   113,    76,   114,   194,   285,
  421.    115,   149,   116,   151,   117,   152,   118,     1,   119,   120,
  422.    153,   121,   122,   125,     2,   225,   124,   296,   127,   143,
  423.    154,   145,   146,   157,     3,   213,   211,   212,   155,     4,
  424.      5,     6,   158,   164,   213,   161,   167,     7,   134,    50,
  425.     51,    52,    53,    54,   189,     8,    55,   168,     9,   192,
  426.     10,   195,   235,    11,   198,   220,   199,   201,   206,   221,
  427.    245,   227,   222,   228,    12,    13,    14,   229,    73,    74,
  428.    232,   163,   237,    15,   254,   255,   242,   212,    16,    17,
  429.    247,   248,    18,    19,    20,   249,   250,   251,   252,   260,
  430.    261,   130,   131,   213,   132,   133,   134,   262,   263,    56,
  431.     21,   267,   268,   269,    57,    58,    59,    60,    61,   275,
  432.     62,    63,    64,    65,   272,   282,    66,    67,   286,     1,
  433.    288,   293,   283,   287,   291,    68,     2,   295,   297,   298,
  434.    213,   301,    69,   307,   213,   218,     3,   306,   308,   310,
  435.    311,     4,     5,     6,   200,   213,   191,   106,   274,     7,
  436.    130,   131,   243,   132,   133,   134,   256,     8,   246,     0,
  437.      9,   290,    10,     0,   278,    11,     0,   135,     0,   136,
  438.    137,   138,   139,   140,   141,   142,    12,    13,    14,     0,
  439.    169,     1,     0,     0,     0,    15,     0,     0,     2,     0,
  440.     16,    17,     0,     0,    18,    19,    20,   292,     3,     0,
  441.      0,     0,     0,     4,     5,     6,     0,     0,     0,     0,
  442.      0,     7,    21,   130,   131,     0,   132,   133,   134,     8,
  443.      0,     0,     9,     0,    10,     0,     0,    11,   136,   137,
  444.    138,   139,   140,   141,   142,     0,     0,     0,    12,    13,
  445.     14,     0,     0,     1,     0,     0,     0,    15,     0,     0,
  446.      2,     0,    16,    17,     0,     0,    18,    19,    20,   302,
  447.      3,     0,     0,     0,     0,     4,     5,     6,     0,     0,
  448.      0,     0,     0,     7,    21,     0,     0,     0,     0,     0,
  449.      0,     8,     0,     0,     9,     0,    10,     0,     0,    11,
  450.      0,   136,   137,   138,   139,   140,   141,   142,     0,     1,
  451.     12,    13,    14,     0,     0,     0,     2,     0,     0,    15,
  452.      0,     0,     0,     0,    16,    17,     3,     0,    18,    19,
  453.     20,     4,     5,     6,     0,     0,     0,     0,     0,     7,
  454.      0,    50,    51,    52,    53,    54,    21,     8,    55,     0,
  455.      9,     0,    10,     0,     0,    11,     0,   130,   131,     0,
  456.    132,   133,   134,     0,     0,     0,    12,    13,    14,   130,
  457.    131,     0,   132,   133,   134,    15,     0,     0,     0,     0,
  458.     16,    17,     0,     0,    18,    19,    20,   130,   131,   144,
  459.    132,   133,   134,     0,   130,   131,     0,   132,   133,   134,
  460.      0,    56,    21,     0,     0,     0,    57,    58,    59,    60,
  461.     61,   266,    62,    63,    64,    65,     0,   226,    66,    67,
  462.    132,   133,   134,     0,     0,   130,   131,    68,   132,   133,
  463.    134,     0,     0,     0,    69,   136,   137,   138,   139,   140,
  464.    141,   142,     0,     0,     0,   271,   219,   136,   137,   138,
  465.    139,   140,   141,   142,     0,     0,     0,     0,     0,     0,
  466.      0,     0,     0,     0,     0,   136,   137,   138,   139,   140,
  467.    141,   142,   136,   137,   138,   139,   140,   141,   142,     0,
  468.      0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
  469.      0,     0,     0,     0,     0,   136,   137,   138,   139,   140,
  470.    141,   142,     0,   136,   137,   138,   139,   140,   141,   142
  471. };
  472. static const short yycheck[] = {     0,
  473.     18,     3,     4,    31,     6,    36,    13,    34,    26,     3,
  474.      4,     5,     6,     7,    13,   208,    10,     7,    22,   143,
  475.     46,    17,   144,    60,    20,    54,    97,    56,    99,    97,
  476.     97,    99,    99,    31,    15,    16,   229,   161,    32,    33,
  477.      3,     4,     5,     6,     7,     7,    48,    10,    97,    47,
  478.     99,     7,    97,    55,    99,    46,    97,    61,    99,    97,
  479.      7,    99,    35,     7,    91,     7,    68,    69,    99,    63,
  480.    263,    61,     7,    99,    68,    69,    70,    71,    72,    31,
  481.     74,    75,    76,    77,    91,    92,    80,    81,    51,   211,
  482.     89,    90,    91,    92,     7,    89,    85,    91,   100,    85,
  483.     63,    96,    96,    43,    44,    68,    69,    70,    71,    72,
  484.     95,    74,    75,    76,    77,    95,    95,    80,    81,    36,
  485.     95,    95,    15,    95,    95,    95,    89,    95,   130,   131,
  486.    132,   133,   134,    96,   136,   137,   138,   139,   140,   141,
  487.    142,    95,    95,   145,   266,    95,   148,    95,   150,   271,
  488.     95,    35,    95,     7,    95,    49,    95,     7,    95,    95,
  489.      7,    95,    95,    94,    14,   193,    96,   289,    94,    96,
  490.      7,    96,    96,    46,    24,   176,    26,    27,    57,    29,
  491.     30,    31,    96,     7,   185,    96,    67,    37,    13,     3,
  492.      4,     5,     6,     7,     7,    45,    10,    67,    48,     7,
  493.     50,     7,   204,    53,    96,     7,    55,    98,    52,    97,
  494.    212,    86,    99,    99,    64,    65,    66,     7,    32,    33,
  495.      7,   223,     7,    73,   226,   227,    21,    27,    78,    79,
  496.     23,    28,    82,    83,    84,    97,     7,     7,    37,    59,
  497.    101,     8,     9,   244,    11,    12,    13,    98,     7,    63,
  498.    100,    24,    48,    39,    68,    69,    70,    71,    72,     7,
  499.     74,    75,    76,    77,    58,    40,    80,    81,    96,     7,
  500.     62,     7,    41,    95,    42,    89,    14,     7,     7,    28,
  501.    281,    21,    96,   301,   285,    23,    24,     7,    95,     0,
  502.      0,    29,    30,    31,   157,   296,   148,    31,   259,    37,
  503.      8,     9,   210,    11,    12,    13,   228,    45,   215,    -1,
  504.     48,   280,    50,    -1,   265,    53,    -1,    25,    -1,    86,
  505.     87,    88,    89,    90,    91,    92,    64,    65,    66,    -1,
  506.     97,     7,    -1,    -1,    -1,    73,    -1,    -1,    14,    -1,
  507.     78,    79,    -1,    -1,    82,    83,    84,    23,    24,    -1,
  508.     -1,    -1,    -1,    29,    30,    31,    -1,    -1,    -1,    -1,
  509.     -1,    37,   100,     8,     9,    -1,    11,    12,    13,    45,
  510.     -1,    -1,    48,    -1,    50,    -1,    -1,    53,    86,    87,
  511.     88,    89,    90,    91,    92,    -1,    -1,    -1,    64,    65,
  512.     66,    -1,    -1,     7,    -1,    -1,    -1,    73,    -1,    -1,
  513.     14,    -1,    78,    79,    -1,    -1,    82,    83,    84,    23,
  514.     24,    -1,    -1,    -1,    -1,    29,    30,    31,    -1,    -1,
  515.     -1,    -1,    -1,    37,   100,    -1,    -1,    -1,    -1,    -1,
  516.     -1,    45,    -1,    -1,    48,    -1,    50,    -1,    -1,    53,
  517.     -1,    86,    87,    88,    89,    90,    91,    92,    -1,     7,
  518.     64,    65,    66,    -1,    -1,    -1,    14,    -1,    -1,    73,
  519.     -1,    -1,    -1,    -1,    78,    79,    24,    -1,    82,    83,
  520.     84,    29,    30,    31,    -1,    -1,    -1,    -1,    -1,    37,
  521.     -1,     3,     4,     5,     6,     7,   100,    45,    10,    -1,
  522.     48,    -1,    50,    -1,    -1,    53,    -1,     8,     9,    -1,
  523.     11,    12,    13,    -1,    -1,    -1,    64,    65,    66,     8,
  524.      9,    -1,    11,    12,    13,    73,    -1,    -1,    -1,    -1,
  525.     78,    79,    -1,    -1,    82,    83,    84,     8,     9,    28,
  526.     11,    12,    13,    -1,     8,     9,    -1,    11,    12,    13,
  527.     -1,    63,   100,    -1,    -1,    -1,    68,    69,    70,    71,
  528.     72,    25,    74,    75,    76,    77,    -1,    38,    80,    81,
  529.     11,    12,    13,    -1,    -1,     8,     9,    89,    11,    12,
  530.     13,    -1,    -1,    -1,    96,    86,    87,    88,    89,    90,
  531.     91,    92,    -1,    -1,    -1,    28,    97,    86,    87,    88,
  532.     89,    90,    91,    92,    -1,    -1,    -1,    -1,    -1,    -1,
  533.     -1,    -1,    -1,    -1,    -1,    86,    87,    88,    89,    90,
  534.     91,    92,    86,    87,    88,    89,    90,    91,    92,    -1,
  535.     -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
  536.     -1,    -1,    -1,    -1,    -1,    86,    87,    88,    89,    90,
  537.     91,    92,    -1,    86,    87,    88,    89,    90,    91,    92
  538. };
  539. /* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
  540. #line 3 "bison.simple"
  541. /* Skeleton output parser for bison,
  542.    Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
  543.    This program is free software; you can redistribute it and/or modify
  544.    it under the terms of the GNU General Public License as published by
  545.    the Free Software Foundation; either version 2, or (at your option)
  546.    any later version.
  547.    This program is distributed in the hope that it will be useful,
  548.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  549.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  550.    GNU General Public License for more details.
  551.    You should have received a copy of the GNU General Public License
  552.    along with this program; if not, write to the Free Software
  553.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  554. /* As a special exception, when this file is copied by Bison into a
  555.    Bison output file, you may use that output file without restriction.
  556.    This special exception was added by the Free Software Foundation
  557.    in version 1.24 of Bison.  */
  558. #ifndef alloca
  559. #ifdef __GNUC__
  560. #define alloca __builtin_alloca
  561. #else /* not GNU C.  */
  562. #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)
  563. #include <alloca.h>
  564. #else /* not sparc */
  565. #if defined (MSDOS) && !defined (__TURBOC__)
  566. #include <malloc.h>
  567. #else /* not MSDOS, or __TURBOC__ */
  568. #if defined(_AIX)
  569. #include <malloc.h>
  570.  #pragma alloca
  571. #else /* not MSDOS, __TURBOC__, or _AIX */
  572. #ifdef __hpux
  573. #ifdef __cplusplus
  574. extern "C" {
  575. void *alloca (unsigned int);
  576. };
  577. #else /* not __cplusplus */
  578. void *alloca ();
  579. #endif /* not __cplusplus */
  580. #endif /* __hpux */
  581. #endif /* not _AIX */
  582. #endif /* not MSDOS, or __TURBOC__ */
  583. #endif /* not sparc.  */
  584. #endif /* not GNU C.  */
  585. #endif /* alloca not defined.  */
  586. /* This is the parser code that is written into each bison parser
  587.   when the %semantic_parser declaration is not specified in the grammar.
  588.   It was written by Richard Stallman by simplifying the hairy parser
  589.   used when %semantic_parser is specified.  */
  590. /* Note: there must be only one dollar sign in this file.
  591.    It is replaced by the list of actions, each action
  592.    as one case of the switch.  */
  593. #define yyerrok (yyerrstatus = 0)
  594. #define yyclearin (yychar = YYEMPTY)
  595. #define YYEMPTY -2
  596. #define YYEOF 0
  597. #define YYACCEPT return(0)
  598. #define YYABORT  return(1)
  599. #define YYERROR goto yyerrlab1
  600. /* Like YYERROR except do call yyerror.
  601.    This remains here temporarily to ease the
  602.    transition to the new meaning of YYERROR, for GCC.
  603.    Once GCC version 2 has supplanted version 1, this can go.  */
  604. #define YYFAIL goto yyerrlab
  605. #define YYRECOVERING()  (!!yyerrstatus)
  606. #define YYBACKUP(token, value) 
  607. do
  608.   if (yychar == YYEMPTY && yylen == 1)
  609.     { yychar = (token), yylval = (value);
  610.       yychar1 = YYTRANSLATE (yychar);
  611.       YYPOPSTACK;
  612.       goto yybackup;
  613.     }
  614.   else
  615.     { yyerror ("syntax error: cannot back up"); YYERROR; }
  616. while (0)
  617. #define YYTERROR 1
  618. #define YYERRCODE 256
  619. #ifndef YYPURE
  620. #define YYLEX yylex()
  621. #endif
  622. #ifdef YYPURE
  623. #ifdef YYLSP_NEEDED
  624. #ifdef YYLEX_PARAM
  625. #define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM)
  626. #else
  627. #define YYLEX yylex(&yylval, &yylloc)
  628. #endif
  629. #else /* not YYLSP_NEEDED */
  630. #ifdef YYLEX_PARAM
  631. #define YYLEX yylex(&yylval, YYLEX_PARAM)
  632. #else
  633. #define YYLEX yylex(&yylval)
  634. #endif
  635. #endif /* not YYLSP_NEEDED */
  636. #endif
  637. /* If nonreentrant, generate the variables here */
  638. #ifndef YYPURE
  639. int yychar; /*  the lookahead symbol */
  640. YYSTYPE yylval; /*  the semantic value of the */
  641. /*  lookahead symbol */
  642. #ifdef YYLSP_NEEDED
  643. YYLTYPE yylloc; /*  location data for the lookahead */
  644. /*  symbol */
  645. #endif
  646. int yynerrs; /*  number of parse errors so far       */
  647. #endif  /* not YYPURE */
  648. #if YYDEBUG != 0
  649. int yydebug; /*  nonzero means print parse trace */
  650. /* Since this is uninitialized, it does not stop multiple parsers
  651.    from coexisting.  */
  652. #endif
  653. /*  YYINITDEPTH indicates the initial size of the parser's stacks */
  654. #ifndef YYINITDEPTH
  655. #define YYINITDEPTH 200
  656. #endif
  657. /*  YYMAXDEPTH is the maximum size the stacks can grow to
  658.     (effective only if the built-in stack extension method is used).  */
  659. #if YYMAXDEPTH == 0
  660. #undef YYMAXDEPTH
  661. #endif
  662. #ifndef YYMAXDEPTH
  663. #define YYMAXDEPTH 10000
  664. #endif
  665. /* Prevent warning if -Wstrict-prototypes.  */
  666. #ifdef __GNUC__
  667. int yyparse (void);
  668. #endif
  669. #if __GNUC__ > 1 /* GNU C and GNU C++ define this.  */
  670. #define __yy_memcpy(TO,FROM,COUNT) __builtin_memcpy(TO,FROM,COUNT)
  671. #else /* not GNU C or C++ */
  672. #ifndef __cplusplus
  673. /* This is the most reliable way to avoid incompatibilities
  674.    in available built-in functions on various systems.  */
  675. static void
  676. __yy_memcpy (to, from, count)
  677.      char *to;
  678.      char *from;
  679.      int count;
  680. {
  681.   register char *f = from;
  682.   register char *t = to;
  683.   register int i = count;
  684.   while (i-- > 0)
  685.     *t++ = *f++;
  686. }
  687. #else /* __cplusplus */
  688. /* This is the most reliable way to avoid incompatibilities
  689.    in available built-in functions on various systems.  */
  690. static void
  691. __yy_memcpy (char *to, char *from, int count)
  692. {
  693.   register char *f = from;
  694.   register char *t = to;
  695.   register int i = count;
  696.   while (i-- > 0)
  697.     *t++ = *f++;
  698. }
  699. #endif
  700. #endif
  701. #line 196 "bison.simple"
  702. /* The user can define YYPARSE_PARAM as the name of an argument to be passed
  703.    into yyparse.  The argument should have type void *.
  704.    It should actually point to an object.
  705.    Grammar actions can access the variable by casting it
  706.    to the proper pointer type.  */
  707. #ifdef YYPARSE_PARAM
  708. #ifdef __cplusplus
  709. #define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
  710. #define YYPARSE_PARAM_DECL
  711. #else /* not __cplusplus */
  712. #define YYPARSE_PARAM_ARG YYPARSE_PARAM
  713. #define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
  714. #endif /* not __cplusplus */
  715. #else /* not YYPARSE_PARAM */
  716. #define YYPARSE_PARAM_ARG
  717. #define YYPARSE_PARAM_DECL
  718. #endif /* not YYPARSE_PARAM */
  719. int
  720. yyparse(YYPARSE_PARAM_ARG)
  721.      YYPARSE_PARAM_DECL
  722. {
  723.   register int yystate;
  724.   register int yyn;
  725.   register short *yyssp;
  726.   register YYSTYPE *yyvsp;
  727.   int yyerrstatus; /*  number of tokens to shift before error messages enabled */
  728.   int yychar1 = 0; /*  lookahead token as an internal (translated) token number */
  729.   short yyssa[YYINITDEPTH]; /*  the state stack */
  730.   YYSTYPE yyvsa[YYINITDEPTH]; /*  the semantic value stack */
  731.   short *yyss = yyssa; /*  refer to the stacks thru separate pointers */
  732.   YYSTYPE *yyvs = yyvsa; /*  to allow yyoverflow to reallocate them elsewhere */
  733. #ifdef YYLSP_NEEDED
  734.   YYLTYPE yylsa[YYINITDEPTH]; /*  the location stack */
  735.   YYLTYPE *yyls = yylsa;
  736.   YYLTYPE *yylsp;
  737. #define YYPOPSTACK   (yyvsp--, yyssp--, yylsp--)
  738. #else
  739. #define YYPOPSTACK   (yyvsp--, yyssp--)
  740. #endif
  741.   int yystacksize = YYINITDEPTH;
  742. #ifdef YYPURE
  743.   int yychar;
  744.   YYSTYPE yylval;
  745.   int yynerrs;
  746. #ifdef YYLSP_NEEDED
  747.   YYLTYPE yylloc;
  748. #endif
  749. #endif
  750.   YYSTYPE yyval; /*  the variable used to return */
  751. /*  semantic values from the action */
  752. /*  routines */
  753.   int yylen;
  754. #if YYDEBUG != 0
  755.   if (yydebug)
  756.     fprintf(stderr, "Starting parsen");
  757. #endif
  758.   yystate = 0;
  759.   yyerrstatus = 0;
  760.   yynerrs = 0;
  761.   yychar = YYEMPTY; /* Cause a token to be read.  */
  762.   /* Initialize stack pointers.
  763.      Waste one element of value and location stack
  764.      so that they stay on the same level as the state stack.
  765.      The wasted elements are never initialized.  */
  766.   yyssp = yyss - 1;
  767.   yyvsp = yyvs;
  768. #ifdef YYLSP_NEEDED
  769.   yylsp = yyls;
  770. #endif
  771. /* Push a new state, which is found in  yystate  .  */
  772. /* In all cases, when you get here, the value and location stacks
  773.    have just been pushed. so pushing a state here evens the stacks.  */
  774. yynewstate:
  775.   *++yyssp = yystate;
  776.   if (yyssp >= yyss + yystacksize - 1)
  777.     {
  778.       /* Give user a chance to reallocate the stack */
  779.       /* Use copies of these so that the &'s don't force the real ones into memory. */
  780.       YYSTYPE *yyvs1 = yyvs;
  781.       short *yyss1 = yyss;
  782. #ifdef YYLSP_NEEDED
  783.       YYLTYPE *yyls1 = yyls;
  784. #endif
  785.       /* Get the current used size of the three stacks, in elements.  */
  786.       int size = yyssp - yyss + 1;
  787. #ifdef yyoverflow
  788.       /* Each stack pointer address is followed by the size of
  789.  the data in use in that stack, in bytes.  */
  790. #ifdef YYLSP_NEEDED
  791.       /* This used to be a conditional around just the two extra args,
  792.  but that might be undefined if yyoverflow is a macro.  */
  793.       yyoverflow("parser stack overflow",
  794.  &yyss1, size * sizeof (*yyssp),
  795.  &yyvs1, size * sizeof (*yyvsp),
  796.  &yyls1, size * sizeof (*yylsp),
  797.  &yystacksize);
  798. #else
  799.       yyoverflow("parser stack overflow",
  800.  &yyss1, size * sizeof (*yyssp),
  801.  &yyvs1, size * sizeof (*yyvsp),
  802.  &yystacksize);
  803. #endif
  804.       yyss = yyss1; yyvs = yyvs1;
  805. #ifdef YYLSP_NEEDED
  806.       yyls = yyls1;
  807. #endif
  808. #else /* no yyoverflow */
  809.       /* Extend the stack our own way.  */
  810.       if (yystacksize >= YYMAXDEPTH)
  811. {
  812.   yyerror("parser stack overflow");
  813.   return 2;
  814. }
  815.       yystacksize *= 2;
  816.       if (yystacksize > YYMAXDEPTH)
  817. yystacksize = YYMAXDEPTH;
  818.       yyss = (short *) alloca (yystacksize * sizeof (*yyssp));
  819.       __yy_memcpy ((char *)yyss, (char *)yyss1, size * sizeof (*yyssp));
  820.       yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp));
  821.       __yy_memcpy ((char *)yyvs, (char *)yyvs1, size * sizeof (*yyvsp));
  822. #ifdef YYLSP_NEEDED
  823.       yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp));
  824.       __yy_memcpy ((char *)yyls, (char *)yyls1, size * sizeof (*yylsp));
  825. #endif
  826. #endif /* no yyoverflow */
  827.       yyssp = yyss + size - 1;
  828.       yyvsp = yyvs + size - 1;
  829. #ifdef YYLSP_NEEDED
  830.       yylsp = yyls + size - 1;
  831. #endif
  832. #if YYDEBUG != 0
  833.       if (yydebug)
  834. fprintf(stderr, "Stack size increased to %dn", yystacksize);
  835. #endif
  836.       if (yyssp >= yyss + yystacksize - 1)
  837. YYABORT;
  838.     }
  839. #if YYDEBUG != 0
  840.   if (yydebug)
  841.     fprintf(stderr, "Entering state %dn", yystate);
  842. #endif
  843.   goto yybackup;
  844.  yybackup:
  845. /* Do appropriate processing given the current state.  */
  846. /* Read a lookahead token if we need one and don't already have one.  */
  847. /* yyresume: */
  848.   /* First try to decide what to do without reference to lookahead token.  */
  849.   yyn = yypact[yystate];
  850.   if (yyn == YYFLAG)
  851.     goto yydefault;
  852.   /* Not known => get a lookahead token if don't already have one.  */
  853.   /* yychar is either YYEMPTY or YYEOF
  854.      or a valid token in external form.  */
  855.   if (yychar == YYEMPTY)
  856.     {
  857. #if YYDEBUG != 0
  858.       if (yydebug)
  859. fprintf(stderr, "Reading a token: ");
  860. #endif
  861.       yychar = YYLEX;
  862.     }
  863.   /* Convert token to internal form (in yychar1) for indexing tables with */
  864.   if (yychar <= 0) /* This means end of input. */
  865.     {
  866.       yychar1 = 0;
  867.       yychar = YYEOF; /* Don't call YYLEX any more */
  868. #if YYDEBUG != 0
  869.       if (yydebug)
  870. fprintf(stderr, "Now at end of input.n");
  871. #endif
  872.     }
  873.   else
  874.     {
  875.       yychar1 = YYTRANSLATE(yychar);
  876. #if YYDEBUG != 0
  877.       if (yydebug)
  878. {
  879.   fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
  880.   /* Give the individual parser a way to print the precise meaning
  881.      of a token, for further debugging info.  */
  882. #ifdef YYPRINT
  883.   YYPRINT (stderr, yychar, yylval);
  884. #endif
  885.   fprintf (stderr, ")n");
  886. }
  887. #endif
  888.     }
  889.   yyn += yychar1;
  890.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
  891.     goto yydefault;
  892.   yyn = yytable[yyn];
  893.   /* yyn is what to do for this token type in this state.
  894.      Negative => reduce, -yyn is rule number.
  895.      Positive => shift, yyn is new state.
  896.        New state is final state => don't bother to shift,
  897.        just return success.
  898.      0, or most negative number => error.  */
  899.   if (yyn < 0)
  900.     {
  901.       if (yyn == YYFLAG)
  902. goto yyerrlab;
  903.       yyn = -yyn;
  904.       goto yyreduce;
  905.     }
  906.   else if (yyn == 0)
  907.     goto yyerrlab;
  908.   if (yyn == YYFINAL)
  909.     YYACCEPT;
  910.   /* Shift the lookahead token.  */
  911. #if YYDEBUG != 0
  912.   if (yydebug)
  913.     fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
  914. #endif
  915.   /* Discard the token being shifted unless it is eof.  */
  916.   if (yychar != YYEOF)
  917.     yychar = YYEMPTY;
  918.   *++yyvsp = yylval;
  919. #ifdef YYLSP_NEEDED
  920.   *++yylsp = yylloc;
  921. #endif
  922.   /* count tokens shifted since error; after three, turn off error status.  */
  923.   if (yyerrstatus) yyerrstatus--;
  924.   yystate = yyn;
  925.   goto yynewstate;
  926. /* Do the default action for the current state.  */
  927. yydefault:
  928.   yyn = yydefact[yystate];
  929.   if (yyn == 0)
  930.     goto yyerrlab;
  931. /* Do a reduction.  yyn is the number of a rule to reduce with.  */
  932. yyreduce:
  933.   yylen = yyr2[yyn];
  934.   if (yylen > 0)
  935.     yyval = yyvsp[1-yylen]; /* implement default value of the action */
  936. #if YYDEBUG != 0
  937.   if (yydebug)
  938.     {
  939.       int i;
  940.       fprintf (stderr, "Reducing via rule %d (line %d), ",
  941.        yyn, yyrline[yyn]);
  942.       /* Print the symbols being reduced, and their result.  */
  943.       for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
  944. fprintf (stderr, "%s ", yytname[yyrhs[i]]);
  945.       fprintf (stderr, " -> %sn", yytname[yyr1[yyn]]);
  946.     }
  947. #endif
  948.   switch (yyn) {
  949. case 23:
  950. #line 151 "pars0grm.y"
  951. { yyval = que_node_list_add_last(NULL, yyvsp[0]); ;
  952.     break;}
  953. case 24:
  954. #line 153 "pars0grm.y"
  955. { yyval = que_node_list_add_last(yyvsp[-1], yyvsp[0]); ;
  956.     break;}
  957. case 25:
  958. #line 157 "pars0grm.y"
  959. { yyval = yyvsp[0];;
  960.     break;}
  961. case 26:
  962. #line 159 "pars0grm.y"
  963. { yyval = pars_func(yyvsp[-3], yyvsp[-1]); ;
  964.     break;}
  965. case 27:
  966. #line 160 "pars0grm.y"
  967. { yyval = yyvsp[0];;
  968.     break;}
  969. case 28:
  970. #line 161 "pars0grm.y"
  971. { yyval = yyvsp[0];;
  972.     break;}
  973. case 29:
  974. #line 162 "pars0grm.y"
  975. { yyval = yyvsp[0];;
  976.     break;}
  977. case 30:
  978. #line 163 "pars0grm.y"
  979. { yyval = yyvsp[0];;
  980.     break;}
  981. case 31:
  982. #line 164 "pars0grm.y"
  983. { yyval = yyvsp[0];;
  984.     break;}
  985. case 32:
  986. #line 165 "pars0grm.y"
  987. { yyval = pars_op('+', yyvsp[-2], yyvsp[0]); ;
  988.     break;}
  989. case 33:
  990. #line 166 "pars0grm.y"
  991. { yyval = pars_op('-', yyvsp[-2], yyvsp[0]); ;
  992.     break;}
  993. case 34:
  994. #line 167 "pars0grm.y"
  995. { yyval = pars_op('*', yyvsp[-2], yyvsp[0]); ;
  996.     break;}
  997. case 35:
  998. #line 168 "pars0grm.y"
  999. { yyval = pars_op('/', yyvsp[-2], yyvsp[0]); ;
  1000.     break;}
  1001. case 36:
  1002. #line 169 "pars0grm.y"
  1003. { yyval = pars_op('-', yyvsp[0], NULL); ;
  1004.     break;}
  1005. case 37:
  1006. #line 170 "pars0grm.y"
  1007. { yyval = yyvsp[-1]; ;
  1008.     break;}
  1009. case 38:
  1010. #line 171 "pars0grm.y"
  1011. { yyval = pars_op('=', yyvsp[-2], yyvsp[0]); ;
  1012.     break;}
  1013. case 39:
  1014. #line 172 "pars0grm.y"
  1015. { yyval = pars_op('<', yyvsp[-2], yyvsp[0]); ;
  1016.     break;}
  1017. case 40:
  1018. #line 173 "pars0grm.y"
  1019. { yyval = pars_op('>', yyvsp[-2], yyvsp[0]); ;
  1020.     break;}
  1021. case 41:
  1022. #line 174 "pars0grm.y"
  1023. { yyval = pars_op(PARS_GE_TOKEN, yyvsp[-2], yyvsp[0]); ;
  1024.     break;}
  1025. case 42:
  1026. #line 175 "pars0grm.y"
  1027. { yyval = pars_op(PARS_LE_TOKEN, yyvsp[-2], yyvsp[0]); ;
  1028.     break;}
  1029. case 43:
  1030. #line 176 "pars0grm.y"
  1031. { yyval = pars_op(PARS_NE_TOKEN, yyvsp[-2], yyvsp[0]); ;
  1032.     break;}
  1033. case 44:
  1034. #line 177 "pars0grm.y"
  1035. { yyval = pars_op(PARS_AND_TOKEN, yyvsp[-2], yyvsp[0]); ;
  1036.     break;}
  1037. case 45:
  1038. #line 178 "pars0grm.y"
  1039. { yyval = pars_op(PARS_OR_TOKEN, yyvsp[-2], yyvsp[0]); ;
  1040.     break;}
  1041. case 46:
  1042. #line 179 "pars0grm.y"
  1043. { yyval = pars_op(PARS_NOT_TOKEN, yyvsp[0], NULL); ;
  1044.     break;}
  1045. case 47:
  1046. #line 181 "pars0grm.y"
  1047. { yyval = pars_op(PARS_NOTFOUND_TOKEN, yyvsp[-2], NULL); ;
  1048.     break;}
  1049. case 48:
  1050. #line 183 "pars0grm.y"
  1051. { yyval = pars_op(PARS_NOTFOUND_TOKEN, yyvsp[-2], NULL); ;
  1052.     break;}
  1053. case 49:
  1054. #line 187 "pars0grm.y"
  1055. { yyval = &pars_to_char_token; ;
  1056.     break;}
  1057. case 50:
  1058. #line 188 "pars0grm.y"
  1059. { yyval = &pars_to_number_token; ;
  1060.     break;}
  1061. case 51:
  1062. #line 189 "pars0grm.y"
  1063. { yyval = &pars_to_binary_token; ;
  1064.     break;}
  1065. case 52:
  1066. #line 191 "pars0grm.y"
  1067. { yyval = &pars_binary_to_number_token; ;
  1068.     break;}
  1069. case 53:
  1070. #line 192 "pars0grm.y"
  1071. { yyval = &pars_substr_token; ;
  1072.     break;}
  1073. case 54:
  1074. #line 193 "pars0grm.y"
  1075. { yyval = &pars_concat_token; ;
  1076.     break;}
  1077. case 55:
  1078. #line 194 "pars0grm.y"
  1079. { yyval = &pars_instr_token; ;
  1080.     break;}
  1081. case 56:
  1082. #line 195 "pars0grm.y"
  1083. { yyval = &pars_length_token; ;
  1084.     break;}
  1085. case 57:
  1086. #line 196 "pars0grm.y"
  1087. { yyval = &pars_sysdate_token; ;
  1088.     break;}
  1089. case 58:
  1090. #line 197 "pars0grm.y"
  1091. { yyval = &pars_rnd_token; ;
  1092.     break;}
  1093. case 59:
  1094. #line 198 "pars0grm.y"
  1095. { yyval = &pars_rnd_str_token; ;
  1096.     break;}
  1097. case 63:
  1098. #line 209 "pars0grm.y"
  1099. { yyval = pars_stored_procedure_call(yyvsp[-4]); ;
  1100.     break;}
  1101. case 64:
  1102. #line 214 "pars0grm.y"
  1103. { yyval = pars_procedure_call(yyvsp[-3], yyvsp[-1]); ;
  1104.     break;}
  1105. case 65:
  1106. #line 218 "pars0grm.y"
  1107. { yyval = &pars_replstr_token; ;
  1108.     break;}
  1109. case 66:
  1110. #line 219 "pars0grm.y"
  1111. { yyval = &pars_printf_token; ;
  1112.     break;}
  1113. case 67:
  1114. #line 220 "pars0grm.y"
  1115. { yyval = &pars_assert_token; ;
  1116.     break;}
  1117. case 68:
  1118. #line 224 "pars0grm.y"
  1119. { yyval = que_node_list_add_last(NULL, yyvsp[0]); ;
  1120.     break;}
  1121. case 69:
  1122. #line 226 "pars0grm.y"
  1123. { yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;
  1124.     break;}
  1125. case 70:
  1126. #line 230 "pars0grm.y"
  1127. { yyval = NULL; ;
  1128.     break;}
  1129. case 71:
  1130. #line 231 "pars0grm.y"
  1131. { yyval = que_node_list_add_last(NULL, yyvsp[0]); ;
  1132.     break;}
  1133. case 72:
  1134. #line 233 "pars0grm.y"
  1135. { yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;
  1136.     break;}
  1137. case 73:
  1138. #line 237 "pars0grm.y"
  1139. { yyval = NULL; ;
  1140.     break;}
  1141. case 74:
  1142. #line 238 "pars0grm.y"
  1143. { yyval = que_node_list_add_last(NULL, yyvsp[0]);;
  1144.     break;}
  1145. case 75:
  1146. #line 239 "pars0grm.y"
  1147. { yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;
  1148.     break;}
  1149. case 76:
  1150. #line 243 "pars0grm.y"
  1151. { yyval = yyvsp[0]; ;
  1152.     break;}
  1153. case 77:
  1154. #line 245 "pars0grm.y"
  1155. { yyval = pars_func(&pars_count_token,
  1156.           que_node_list_add_last(NULL,
  1157.     sym_tab_add_int_lit(
  1158. pars_sym_tab_global, 1))); ;
  1159.     break;}
  1160. case 78:
  1161. #line 250 "pars0grm.y"
  1162. { yyval = pars_func(&pars_count_token,
  1163.     que_node_list_add_last(NULL,
  1164. pars_func(&pars_distinct_token,
  1165.      que_node_list_add_last(
  1166. NULL, yyvsp[-1])))); ;
  1167.     break;}
  1168. case 79:
  1169. #line 256 "pars0grm.y"
  1170. { yyval = pars_func(&pars_sum_token,
  1171. que_node_list_add_last(NULL,
  1172. yyvsp[-1])); ;
  1173.     break;}
  1174. case 80:
  1175. #line 262 "pars0grm.y"
  1176. { yyval = NULL; ;
  1177.     break;}
  1178. case 81:
  1179. #line 263 "pars0grm.y"
  1180. { yyval = que_node_list_add_last(NULL, yyvsp[0]); ;
  1181.     break;}
  1182. case 82:
  1183. #line 265 "pars0grm.y"
  1184. { yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;
  1185.     break;}
  1186. case 83:
  1187. #line 269 "pars0grm.y"
  1188. { yyval = pars_select_list(&pars_star_denoter,
  1189. NULL); ;
  1190.     break;}
  1191. case 84:
  1192. #line 272 "pars0grm.y"
  1193. { yyval = pars_select_list(yyvsp[-2], yyvsp[0]); ;
  1194.     break;}
  1195. case 85:
  1196. #line 273 "pars0grm.y"
  1197. { yyval = pars_select_list(yyvsp[0], NULL); ;
  1198.     break;}
  1199. case 86:
  1200. #line 277 "pars0grm.y"
  1201. { yyval = NULL; ;
  1202.     break;}
  1203. case 87:
  1204. #line 278 "pars0grm.y"
  1205. { yyval = yyvsp[0]; ;
  1206.     break;}
  1207. case 88:
  1208. #line 282 "pars0grm.y"
  1209. { yyval = NULL; ;
  1210.     break;}
  1211. case 89:
  1212. #line 284 "pars0grm.y"
  1213. { yyval = &pars_update_token; ;
  1214.     break;}
  1215. case 90:
  1216. #line 288 "pars0grm.y"
  1217. { yyval = NULL; ;
  1218.     break;}
  1219. case 91:
  1220. #line 290 "pars0grm.y"
  1221. { yyval = &pars_consistent_token; ;
  1222.     break;}
  1223. case 92:
  1224. #line 294 "pars0grm.y"
  1225. { yyval = &pars_asc_token; ;
  1226.     break;}
  1227. case 93:
  1228. #line 295 "pars0grm.y"
  1229. { yyval = &pars_asc_token; ;
  1230.     break;}
  1231. case 94:
  1232. #line 296 "pars0grm.y"
  1233. { yyval = &pars_desc_token; ;
  1234.     break;}
  1235. case 95:
  1236. #line 300 "pars0grm.y"
  1237. { yyval = NULL; ;
  1238.     break;}
  1239. case 96:
  1240. #line 302 "pars0grm.y"
  1241. { yyval = pars_order_by(yyvsp[-1], yyvsp[0]); ;
  1242.     break;}
  1243. case 97:
  1244. #line 311 "pars0grm.y"
  1245. { yyval = pars_select_statement(yyvsp[-6], yyvsp[-4], yyvsp[-3],
  1246. yyvsp[-2], yyvsp[-1], yyvsp[0]); ;
  1247.     break;}
  1248. case 98:
  1249. #line 317 "pars0grm.y"
  1250. { yyval = yyvsp[0]; ;
  1251.     break;}
  1252. case 99:
  1253. #line 322 "pars0grm.y"
  1254. { yyval = pars_insert_statement(yyvsp[-4], yyvsp[-1], NULL); ;
  1255.     break;}
  1256. case 100:
  1257. #line 324 "pars0grm.y"
  1258. { yyval = pars_insert_statement(yyvsp[-1], NULL, yyvsp[0]); ;
  1259.     break;}
  1260. case 101:
  1261. #line 328 "pars0grm.y"
  1262. { yyval = pars_column_assignment(yyvsp[-2], yyvsp[0]); ;
  1263.     break;}
  1264. case 102:
  1265. #line 332 "pars0grm.y"
  1266. { yyval = que_node_list_add_last(NULL, yyvsp[0]); ;
  1267.     break;}
  1268. case 103:
  1269. #line 334 "pars0grm.y"
  1270. { yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;
  1271.     break;}
  1272. case 104:
  1273. #line 340 "pars0grm.y"
  1274. { yyval = yyvsp[0]; ;
  1275.     break;}
  1276. case 105:
  1277. #line 346 "pars0grm.y"
  1278. { yyval = pars_update_statement_start(FALSE,
  1279. yyvsp[-2], yyvsp[0]); ;
  1280.     break;}
  1281. case 106:
  1282. #line 352 "pars0grm.y"
  1283. { yyval = pars_update_statement(yyvsp[-1], NULL, yyvsp[0]); ;
  1284.     break;}
  1285. case 107:
  1286. #line 357 "pars0grm.y"
  1287. { yyval = pars_update_statement(yyvsp[-1], yyvsp[0], NULL); ;
  1288.     break;}
  1289. case 108:
  1290. #line 362 "pars0grm.y"
  1291. { yyval = pars_update_statement_start(TRUE,
  1292. yyvsp[0], NULL); ;
  1293.     break;}
  1294. case 109:
  1295. #line 368 "pars0grm.y"
  1296. { yyval = pars_update_statement(yyvsp[-1], NULL, yyvsp[0]); ;
  1297.     break;}
  1298. case 110:
  1299. #line 373 "pars0grm.y"
  1300. { yyval = pars_update_statement(yyvsp[-1], yyvsp[0], NULL); ;
  1301.     break;}
  1302. case 111:
  1303. #line 378 "pars0grm.y"
  1304. { yyval = pars_row_printf_statement(yyvsp[0]); ;
  1305.     break;}
  1306. case 112:
  1307. #line 383 "pars0grm.y"
  1308. { yyval = pars_assignment_statement(yyvsp[-2], yyvsp[0]); ;
  1309.     break;}
  1310. case 113:
  1311. #line 389 "pars0grm.y"
  1312. { yyval = pars_elsif_element(yyvsp[-2], yyvsp[0]); ;
  1313.     break;}
  1314. case 114:
  1315. #line 393 "pars0grm.y"
  1316. { yyval = que_node_list_add_last(NULL, yyvsp[0]); ;
  1317.     break;}
  1318. case 115:
  1319. #line 395 "pars0grm.y"
  1320. { yyval = que_node_list_add_last(yyvsp[-1], yyvsp[0]); ;
  1321.     break;}
  1322. case 116:
  1323. #line 399 "pars0grm.y"
  1324. { yyval = NULL; ;
  1325.     break;}
  1326. case 117:
  1327. #line 401 "pars0grm.y"
  1328. { yyval = yyvsp[0]; ;
  1329.     break;}
  1330. case 118:
  1331. #line 402 "pars0grm.y"
  1332. { yyval = yyvsp[0]; ;
  1333.     break;}
  1334. case 119:
  1335. #line 409 "pars0grm.y"
  1336. { yyval = pars_if_statement(yyvsp[-5], yyvsp[-3], yyvsp[-2]); ;
  1337.     break;}
  1338. case 120:
  1339. #line 415 "pars0grm.y"
  1340. { yyval = pars_while_statement(yyvsp[-4], yyvsp[-2]); ;
  1341.     break;}
  1342. case 121:
  1343. #line 423 "pars0grm.y"
  1344. { yyval = pars_for_statement(yyvsp[-8], yyvsp[-6], yyvsp[-4], yyvsp[-2]); ;
  1345.     break;}
  1346. case 122:
  1347. #line 427 "pars0grm.y"
  1348. { yyval = pars_return_statement(); ;
  1349.     break;}
  1350. case 123:
  1351. #line 432 "pars0grm.y"
  1352. { yyval = pars_open_statement(
  1353. ROW_SEL_OPEN_CURSOR, yyvsp[0]); ;
  1354.     break;}
  1355. case 124:
  1356. #line 438 "pars0grm.y"
  1357. { yyval = pars_open_statement(
  1358. ROW_SEL_CLOSE_CURSOR, yyvsp[0]); ;
  1359.     break;}
  1360. case 125:
  1361. #line 444 "pars0grm.y"
  1362. { yyval = pars_fetch_statement(yyvsp[-2], yyvsp[0]); ;
  1363.     break;}
  1364. case 126:
  1365. #line 448 "pars0grm.y"
  1366. { yyval = pars_column_def(yyvsp[-1], yyvsp[0]); ;
  1367.     break;}
  1368. case 127:
  1369. #line 452 "pars0grm.y"
  1370. { yyval = que_node_list_add_last(NULL, yyvsp[0]); ;
  1371.     break;}
  1372. case 128:
  1373. #line 454 "pars0grm.y"
  1374. { yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;
  1375.     break;}
  1376. case 129:
  1377. #line 458 "pars0grm.y"
  1378. { yyval = NULL; ;
  1379.     break;}
  1380. case 130:
  1381. #line 460 "pars0grm.y"
  1382. { yyval = &pars_int_token;
  1383. /* pass any non-NULL pointer */ ;
  1384.     break;}
  1385. case 131:
  1386. #line 467 "pars0grm.y"
  1387. { yyval = pars_create_table(yyvsp[-4], yyvsp[-2], yyvsp[0]); ;
  1388.     break;}
  1389. case 132:
  1390. #line 471 "pars0grm.y"
  1391. { yyval = que_node_list_add_last(NULL, yyvsp[0]); ;
  1392.     break;}
  1393. case 133:
  1394. #line 473 "pars0grm.y"
  1395. { yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;
  1396.     break;}
  1397. case 134:
  1398. #line 477 "pars0grm.y"
  1399. { yyval = NULL; ;
  1400.     break;}
  1401. case 135:
  1402. #line 478 "pars0grm.y"
  1403. { yyval = &pars_unique_token; ;
  1404.     break;}
  1405. case 136:
  1406. #line 482 "pars0grm.y"
  1407. { yyval = NULL; ;
  1408.     break;}
  1409. case 137:
  1410. #line 483 "pars0grm.y"
  1411. { yyval = &pars_clustered_token; ;
  1412.     break;}
  1413. case 138:
  1414. #line 491 "pars0grm.y"
  1415. { yyval = pars_create_index(yyvsp[-8], yyvsp[-7], yyvsp[-5], yyvsp[-3], yyvsp[-1]); ;
  1416.     break;}
  1417. case 139:
  1418. #line 496 "pars0grm.y"
  1419. { yyval = pars_commit_statement(); ;
  1420.     break;}
  1421. case 140:
  1422. #line 501 "pars0grm.y"
  1423. { yyval = pars_rollback_statement(); ;
  1424.     break;}
  1425. case 141:
  1426. #line 505 "pars0grm.y"
  1427. { yyval = &pars_int_token; ;
  1428.     break;}
  1429. case 142:
  1430. #line 506 "pars0grm.y"
  1431. { yyval = &pars_char_token; ;
  1432.     break;}
  1433. case 143:
  1434. #line 511 "pars0grm.y"
  1435. { yyval = pars_parameter_declaration(yyvsp[-2],
  1436. PARS_INPUT, yyvsp[0]); ;
  1437.     break;}
  1438. case 144:
  1439. #line 514 "pars0grm.y"
  1440. { yyval = pars_parameter_declaration(yyvsp[-2],
  1441. PARS_OUTPUT, yyvsp[0]); ;
  1442.     break;}
  1443. case 145:
  1444. #line 519 "pars0grm.y"
  1445. { yyval = NULL; ;
  1446.     break;}
  1447. case 146:
  1448. #line 520 "pars0grm.y"
  1449. { yyval = que_node_list_add_last(NULL, yyvsp[0]); ;
  1450.     break;}
  1451. case 147:
  1452. #line 522 "pars0grm.y"
  1453. { yyval = que_node_list_add_last(yyvsp[-2], yyvsp[0]); ;
  1454.     break;}
  1455. case 148:
  1456. #line 527 "pars0grm.y"
  1457. { yyval = pars_variable_declaration(yyvsp[-2], yyvsp[-1]); ;
  1458.     break;}
  1459. case 152:
  1460. #line 539 "pars0grm.y"
  1461. { yyval = pars_cursor_declaration(yyvsp[-3], yyvsp[-1]); ;
  1462.     break;}
  1463. case 156:
  1464. #line 555 "pars0grm.y"
  1465. { yyval = pars_procedure_definition(yyvsp[-9], yyvsp[-7],
  1466. yyvsp[-1]); ;
  1467.     break;}
  1468. }
  1469.    /* the action file gets copied in in place of this dollarsign */
  1470. #line 498 "bison.simple"
  1471.   yyvsp -= yylen;
  1472.   yyssp -= yylen;
  1473. #ifdef YYLSP_NEEDED
  1474.   yylsp -= yylen;
  1475. #endif
  1476. #if YYDEBUG != 0
  1477.   if (yydebug)
  1478.     {
  1479.       short *ssp1 = yyss - 1;
  1480.       fprintf (stderr, "state stack now");
  1481.       while (ssp1 != yyssp)
  1482. fprintf (stderr, " %d", *++ssp1);
  1483.       fprintf (stderr, "n");
  1484.     }
  1485. #endif
  1486.   *++yyvsp = yyval;
  1487. #ifdef YYLSP_NEEDED
  1488.   yylsp++;
  1489.   if (yylen == 0)
  1490.     {
  1491.       yylsp->first_line = yylloc.first_line;
  1492.       yylsp->first_column = yylloc.first_column;
  1493.       yylsp->last_line = (yylsp-1)->last_line;
  1494.       yylsp->last_column = (yylsp-1)->last_column;
  1495.       yylsp->text = 0;
  1496.     }
  1497.   else
  1498.     {
  1499.       yylsp->last_line = (yylsp+yylen-1)->last_line;
  1500.       yylsp->last_column = (yylsp+yylen-1)->last_column;
  1501.     }
  1502. #endif
  1503.   /* Now "shift" the result of the reduction.
  1504.      Determine what state that goes to,
  1505.      based on the state we popped back to
  1506.      and the rule number reduced by.  */
  1507.   yyn = yyr1[yyn];
  1508.   yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  1509.   if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  1510.     yystate = yytable[yystate];
  1511.   else
  1512.     yystate = yydefgoto[yyn - YYNTBASE];
  1513.   goto yynewstate;
  1514. yyerrlab:   /* here on detecting error */
  1515.   if (! yyerrstatus)
  1516.     /* If not already recovering from an error, report this error.  */
  1517.     {
  1518.       ++yynerrs;
  1519. #ifdef YYERROR_VERBOSE
  1520.       yyn = yypact[yystate];
  1521.       if (yyn > YYFLAG && yyn < YYLAST)
  1522. {
  1523.   int size = 0;
  1524.   char *msg;
  1525.   int x, count;
  1526.   count = 0;
  1527.   /* Start X at -yyn if nec to avoid negative indexes in yycheck.  */
  1528.   for (x = (yyn < 0 ? -yyn : 0);
  1529.        x < (sizeof(yytname) / sizeof(char *)); x++)
  1530.     if (yycheck[x + yyn] == x)
  1531.       size += strlen(yytname[x]) + 15, count++;
  1532.   msg = (char *) malloc(size + 15);
  1533.   if (msg != 0)
  1534.     {
  1535.       strcpy(msg, "parse error");
  1536.       if (count < 5)
  1537. {
  1538.   count = 0;
  1539.   for (x = (yyn < 0 ? -yyn : 0);
  1540.        x < (sizeof(yytname) / sizeof(char *)); x++)
  1541.     if (yycheck[x + yyn] == x)
  1542.       {
  1543. strcat(msg, count == 0 ? ", expecting `" : " or `");
  1544. strcat(msg, yytname[x]);
  1545. strcat(msg, "'");
  1546. count++;
  1547.       }
  1548. }
  1549.       yyerror(msg);
  1550.       free(msg);
  1551.     }
  1552.   else
  1553.     yyerror ("parse error; also virtual memory exceeded");
  1554. }
  1555.       else
  1556. #endif /* YYERROR_VERBOSE */
  1557. yyerror("parse error");
  1558.     }
  1559.   goto yyerrlab1;
  1560. yyerrlab1:   /* here on error raised explicitly by an action */
  1561.   if (yyerrstatus == 3)
  1562.     {
  1563.       /* if just tried and failed to reuse lookahead token after an error, discard it.  */
  1564.       /* return failure if at end of input */
  1565.       if (yychar == YYEOF)
  1566. YYABORT;
  1567. #if YYDEBUG != 0
  1568.       if (yydebug)
  1569. fprintf(stderr, "Discarding token %d (%s).n", yychar, yytname[yychar1]);
  1570. #endif
  1571.       yychar = YYEMPTY;
  1572.     }
  1573.   /* Else will try to reuse lookahead token
  1574.      after shifting the error token.  */
  1575.   yyerrstatus = 3; /* Each real token shifted decrements this */
  1576.   goto yyerrhandle;
  1577. yyerrdefault:  /* current state does not do anything special for the error token. */
  1578. #if 0
  1579.   /* This is wrong; only states that explicitly want error tokens
  1580.      should shift them.  */
  1581.   yyn = yydefact[yystate];  /* If its default is to accept any token, ok.  Otherwise pop it.*/
  1582.   if (yyn) goto yydefault;
  1583. #endif
  1584. yyerrpop:   /* pop the current state because it cannot handle the error token */
  1585.   if (yyssp == yyss) YYABORT;
  1586.   yyvsp--;
  1587.   yystate = *--yyssp;
  1588. #ifdef YYLSP_NEEDED
  1589.   yylsp--;
  1590. #endif
  1591. #if YYDEBUG != 0
  1592.   if (yydebug)
  1593.     {
  1594.       short *ssp1 = yyss - 1;
  1595.       fprintf (stderr, "Error: state stack now");
  1596.       while (ssp1 != yyssp)
  1597. fprintf (stderr, " %d", *++ssp1);
  1598.       fprintf (stderr, "n");
  1599.     }
  1600. #endif
  1601. yyerrhandle:
  1602.   yyn = yypact[yystate];
  1603.   if (yyn == YYFLAG)
  1604.     goto yyerrdefault;
  1605.   yyn += YYTERROR;
  1606.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
  1607.     goto yyerrdefault;
  1608.   yyn = yytable[yyn];
  1609.   if (yyn < 0)
  1610.     {
  1611.       if (yyn == YYFLAG)
  1612. goto yyerrpop;
  1613.       yyn = -yyn;
  1614.       goto yyreduce;
  1615.     }
  1616.   else if (yyn == 0)
  1617.     goto yyerrpop;
  1618.   if (yyn == YYFINAL)
  1619.     YYACCEPT;
  1620. #if YYDEBUG != 0
  1621.   if (yydebug)
  1622.     fprintf(stderr, "Shifting error token, ");
  1623. #endif
  1624.   *++yyvsp = yylval;
  1625. #ifdef YYLSP_NEEDED
  1626.   *++yylsp = yylloc;
  1627. #endif
  1628.   yystate = yyn;
  1629.   goto yynewstate;
  1630. }
  1631. #line 559 "pars0grm.y"