home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / fns101.zip / Add-Ons / Fnorb / src / grammar.c < prev    next >
C/C++ Source or Header  |  1999-06-28  |  67KB  |  2,181 lines

  1.  
  2. /*  A Bison parser, made from grammar.y
  3.  by  GNU Bison version 1.25
  4.   */
  5.  
  6. #define YYBISON 1  /* Identify Bison output.  */
  7.  
  8. #define    IDL_ANY    258
  9. #define    ATTRIBUTE    259
  10. #define    BOOLEAN    260
  11. #define    CASE    261
  12. #define    CHAR    262
  13. #define    CONST    263
  14. #define    CONTEXT    264
  15. #define    DEFAULT    265
  16. #define    DOUBLE    266
  17. #define    ENUM    267
  18. #define    EXCEPTION    268
  19. #define    IDENTIFIER    269
  20. #define    IN    270
  21. #define    INOUT    271
  22. #define    INTERFACE    272
  23. #define    IDL_FALSE    273
  24. #define    FIXED    274
  25. #define    FLOAT    275
  26. #define    LONG    276
  27. #define    MODULE    277
  28. #define    NATIVE    278
  29. #define    OBJECT    279
  30. #define    OCTET    280
  31. #define    ONEWAY    281
  32. #define    OUT    282
  33. #define    PRAGMA    283
  34. #define    RAISES    284
  35. #define    READONLY    285
  36. #define    SCOPE_DELIMITER    286
  37. #define    SEQUENCE    287
  38. #define    SHORT    288
  39. #define    STRING    289
  40. #define    STRUCT    290
  41. #define    SWITCH    291
  42. #define    IDL_TRUE    292
  43. #define    TYPEDEF    293
  44. #define    UNION    294
  45. #define    UNSIGNED    295
  46. #define    VOID    296
  47. #define    WCHAR    297
  48. #define    WSTRING    298
  49. #define    CHARACTER_LITERAL    299
  50. #define    WIDE_CHARACTER_LITERAL    300
  51. #define    FLOATING_PT_LITERAL    301
  52. #define    INTEGER_LITERAL    302
  53. #define    STRING_LITERAL    303
  54. #define    WIDE_STRING_LITERAL    304
  55. #define    FIXED_PT_LITERAL    305
  56. #define    LEFT_SHIFT    306
  57. #define    RIGHT_SHIFT    307
  58.  
  59. #line 1 "grammar.y"
  60.  
  61.  
  62. /***************************************************************
  63.  
  64.   Copyright (C) DSTC Pty Ltd (ACN 052 372 577) 1997, 1998, 1999
  65.   Unpublished work.  All Rights Reserved.
  66.  
  67.   The software contained on this media is the property of the
  68.   DSTC Pty Ltd.  Use of this software is strictly in accordance
  69.   with the license agreement in the accompanying LICENSE.HTML
  70.   file.  If your distribution of this software does not contain
  71.   a LICENSE.HTML file then you have no rights to use this
  72.   software in any manner and should contact DSTC at the address
  73.   below to determine an appropriate licensing arrangement.
  74.  
  75.      DSTC Pty Ltd
  76.      Level 7, GP South
  77.      Staff House Road
  78.      University of Queensland
  79.      St Lucia, 4072
  80.      Australia
  81.      Tel: +61 7 3365 4310
  82.      Fax: +61 7 3365 4311
  83.      Email: enquiries@dstc.edu.au
  84.  
  85.   This software is being provided "AS IS" without warranty of
  86.   any kind.  In no event shall DSTC Pty Ltd be liable for
  87.   damage of any kind arising out of or in connection with
  88.   the use or performance of this software.
  89.  
  90.  
  91.   Project:      Fnorb
  92.   File:         $Source: /units/arch/src/Fnorb/src/RCS/grammar.y,v $
  93.   Version:      @(#)$RCSfile: grammar.y,v $ $Revision: 1.9 $
  94.  
  95.  
  96.   Description:    Bison grammar for OMG IDL.
  97.  
  98. ****************************************************************/
  99.  
  100. #include "Python.h"
  101. #include "bisonmodule.h"
  102.  
  103. /* Forward declarations. */
  104. void yyerror(char*);
  105. void yywarning(char*);
  106.  
  107. /* The lexer function that returns tokens. */
  108. int yylex();
  109.  
  110. /* The lexer returns all semantic values as Python objects! */
  111. #define YYSTYPE PyObject*
  112.  
  113. /* This hack is required to use the generated parser on Win95/NT. */
  114. #ifdef WIN32
  115. #define MSDOS
  116. #endif
  117.  
  118. #ifndef YYSTYPE
  119. #define YYSTYPE int
  120. #endif
  121. #include <stdio.h>
  122.  
  123. #ifndef __cplusplus
  124. #ifndef __STDC__
  125. #define const
  126. #endif
  127. #endif
  128.  
  129.  
  130.  
  131. #define    YYFINAL        334
  132. #define    YYFLAG        -32768
  133. #define    YYNTBASE    74
  134.  
  135. #define YYTRANSLATE(x) ((unsigned)(x) <= 307 ? yytranslate[x] : 184)
  136.  
  137. static const char yytranslate[] = {     0,
  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,    66,    61,     2,    68,
  142.     69,    64,    62,    57,    63,     2,    65,     2,     2,     2,
  143.      2,     2,     2,     2,     2,     2,     2,    56,    53,    70,
  144.     58,    71,     2,     2,     2,     2,     2,     2,     2,     2,
  145.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  146.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  147.     72,     2,    73,    60,     2,     2,     2,     2,     2,     2,
  148.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  149.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  150.      2,     2,    54,    59,    55,    67,     2,     2,     2,     2,
  151.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  152.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  153.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  154.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  155.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  156.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  157.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  158.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  159.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  160.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  161.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  162.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  163.      2,     2,     2,     2,     2,     1,     2,     3,     4,     5,
  164.      6,     7,     8,     9,    10,    11,    12,    13,    14,    15,
  165.     16,    17,    18,    19,    20,    21,    22,    23,    24,    25,
  166.     26,    27,    28,    29,    30,    31,    32,    33,    34,    35,
  167.     36,    37,    38,    39,    40,    41,    42,    43,    44,    45,
  168.     46,    47,    48,    49,    50,    51,    52
  169. };
  170.  
  171. #if YYDEBUG != 0
  172. static const short yyprhs[] = {     0,
  173.      0,     1,     3,     4,     7,     9,    12,    15,    18,    21,
  174.     24,    27,    29,    30,    37,    39,    41,    42,    50,    53,
  175.     54,    57,    60,    63,    66,    69,    72,    74,    75,    78,
  176.     81,    82,    86,    88,    91,    95,   101,   103,   105,   107,
  177.    109,   111,   113,   115,   117,   119,   121,   123,   127,   129,
  178.    133,   135,   139,   141,   145,   149,   151,   155,   159,   161,
  179.    165,   169,   173,   176,   179,   182,   184,   186,   188,   192,
  180.    194,   196,   198,   200,   202,   204,   206,   208,   210,   212,
  181.    215,   217,   219,   221,   224,   227,   229,   231,   233,   235,
  182.    237,   239,   241,   243,   245,   247,   249,   251,   253,   255,
  183.    257,   259,   261,   263,   265,   267,   270,   271,   275,   277,
  184.    279,   281,   283,   285,   288,   290,   292,   294,   296,   298,
  185.    300,   302,   305,   307,   309,   311,   314,   317,   321,   323,
  186.    325,   327,   329,   331,   333,   334,   341,   344,   345,   348,
  187.    352,   353,   364,   366,   368,   370,   372,   374,   377,   378,
  188.    381,   385,   388,   389,   392,   396,   399,   402,   403,   410,
  189.    413,   414,   418,   420,   427,   432,   437,   439,   444,   446,
  190.    449,   452,   453,   456,   460,   465,   466,   468,   471,   472,
  191.    476,   477,   484,   485,   493,   494,   496,   498,   500,   504,
  192.    507,   510,   511,   515,   519,   521,   523,   525,   526,   528,
  193.    533,   534,   536,   541,   544,   545,   549,   551,   553,   555,
  194.    557,   559,   566
  195. };
  196.  
  197. static const short yyrhs[] = {    -1,
  198.     75,     0,     0,    76,    77,     0,    78,     0,    78,    77,
  199.      0,   106,    53,     0,    91,    53,     0,   164,    53,     0,
  200.     81,    53,     0,    79,    53,     0,    28,     0,     0,    22,
  201.     14,    80,    54,    77,    55,     0,    82,     0,    84,     0,
  202.      0,    17,    14,    87,    83,    54,    85,    55,     0,    17,
  203.     14,     0,     0,    86,    85,     0,   106,    53,     0,    91,
  204.     53,     0,   164,    53,     0,   160,    53,     0,   166,    53,
  205.      0,    28,     0,     0,    56,    88,     0,    90,    89,     0,
  206.      0,    57,    90,    89,     0,    14,     0,    31,    14,     0,
  207.     90,    31,    14,     0,     8,    92,    14,    58,    93,     0,
  208.    118,     0,   127,     0,   128,     0,   129,     0,   117,     0,
  209.    154,     0,   155,     0,   183,     0,    90,     0,    94,     0,
  210.     95,     0,    94,    59,    95,     0,    96,     0,    95,    60,
  211.     96,     0,    97,     0,    96,    61,    97,     0,    98,     0,
  212.     97,    52,    98,     0,    97,    51,    98,     0,    99,     0,
  213.     98,    62,    99,     0,    98,    63,    99,     0,   100,     0,
  214.     99,    64,   100,     0,    99,    65,   100,     0,    99,    66,
  215.    100,     0,    63,   101,     0,    62,   101,     0,    67,   101,
  216.      0,   101,     0,    90,     0,   102,     0,    68,    93,    69,
  217.      0,   103,     0,    48,     0,    44,     0,    50,     0,    46,
  218.      0,   104,     0,    47,     0,    37,     0,    18,     0,    93,
  219.      0,    38,   107,     0,   133,     0,   138,     0,   148,     0,
  220.     23,   116,     0,   108,   113,     0,   109,     0,   112,     0,
  221.    110,     0,   111,     0,    90,     0,   117,     0,   118,     0,
  222.    127,     0,   128,     0,   129,     0,   130,     0,   131,     0,
  223.    132,     0,   153,     0,   154,     0,   155,     0,   182,     0,
  224.    133,     0,   138,     0,   148,     0,   115,   114,     0,     0,
  225.     57,   115,   114,     0,   116,     0,   156,     0,    14,     0,
  226.     20,     0,    11,     0,    21,    11,     0,   119,     0,   123,
  227.      0,   120,     0,   121,     0,   122,     0,    33,     0,    21,
  228.      0,    21,    21,     0,   124,     0,   125,     0,   126,     0,
  229.     40,    33,     0,    40,    21,     0,    40,    21,    21,     0,
  230.      7,     0,    42,     0,     5,     0,    25,     0,     3,     0,
  231.     24,     0,     0,    35,    14,   134,    54,   135,    55,     0,
  232.    137,   136,     0,     0,   137,   136,     0,   108,   113,    53,
  233.      0,     0,    39,    14,    36,    68,   140,    69,   139,    54,
  234.    141,    55,     0,   118,     0,   127,     0,   129,     0,   148,
  235.      0,    90,     0,   143,   142,     0,     0,   143,   142,     0,
  236.    144,   147,    53,     0,   146,   145,     0,     0,   146,   145,
  237.      0,     6,    93,    56,     0,    10,    56,     0,   108,   115,
  238.      0,     0,    12,    14,   149,    54,   150,    55,     0,   152,
  239.    151,     0,     0,    57,   152,   151,     0,    14,     0,    32,
  240.     70,   109,    57,   105,    71,     0,    32,    70,   109,    71,
  241.      0,    34,    70,   105,    71,     0,    34,     0,    43,    70,
  242.    105,    71,     0,    43,     0,    14,   157,     0,   159,   158,
  243.      0,     0,   159,   158,     0,    72,   105,    73,     0,   161,
  244.      4,   181,   162,     0,     0,    30,     0,   116,   163,     0,
  245.      0,    57,   116,   163,     0,     0,    13,    14,   165,    54,
  246.    136,    55,     0,     0,   168,   169,    14,   167,   170,   175,
  247.    177,     0,     0,    26,     0,   181,     0,    41,     0,    68,
  248.    171,    69,     0,    68,    69,     0,   173,   172,     0,     0,
  249.     57,   173,   172,     0,   174,   181,   116,     0,    15,     0,
  250.     27,     0,    16,     0,     0,   176,     0,    29,    68,    88,
  251.     69,     0,     0,   178,     0,     9,    68,   179,    69,     0,
  252.     48,   180,     0,     0,    57,    48,   180,     0,   110,     0,
  253.    154,     0,   155,     0,   182,     0,    90,     0,    19,    70,
  254.    105,    57,   103,    71,     0,    19,     0
  255. };
  256.  
  257. #endif
  258.  
  259. #if YYDEBUG != 0
  260. static const short yyrline[] = { 0,
  261.    119,   120,   124,   129,   135,   136,   140,   141,   143,   145,
  262.    147,   149,   157,   162,   169,   170,   174,   179,   186,   193,
  263.    194,   198,   199,   201,   203,   205,   207,   215,   220,   228,
  264.    235,   240,   248,   249,   255,   263,   270,   271,   273,   275,
  265.    277,   279,   281,   283,   285,   293,   296,   297,   305,   306,
  266.    314,   315,   323,   324,   330,   338,   339,   345,   353,   354,
  267.    360,   366,   374,   379,   385,   391,   395,   400,   402,   406,
  268.    407,   413,   419,   425,   431,   435,   442,   447,   455,   462,
  269.    463,   465,   467,   469,   477,   484,   485,   489,   490,   492,
  270.    500,   501,   503,   505,   507,   509,   511,   513,   517,   518,
  271.    520,   522,   526,   527,   529,   533,   540,   545,   553,   554,
  272.    558,   565,   570,   576,   584,   585,   589,   590,   592,   596,
  273.    603,   610,   617,   618,   620,   624,   631,   638,   645,   652,
  274.    659,   666,   673,   680,   687,   692,   699,   706,   711,   719,
  275.    727,   732,   739,   740,   742,   744,   746,   754,   761,   766,
  276.    774,   781,   788,   793,   801,   805,   813,   820,   825,   832,
  277.    839,   844,   852,   855,   860,   868,   873,   881,   886,   894,
  278.    901,   908,   913,   921,   928,   935,   940,   948,   955,   960,
  279.    968,   973,   980,   985,   992,   997,  1005,  1006,  1014,  1018,
  280.   1026,  1032,  1037,  1045,  1052,  1057,  1063,  1071,  1076,  1080,
  281.   1087,  1092,  1096,  1103,  1109,  1114,  1122,  1123,  1125,  1127,
  282.   1129,  1137,  1144
  283. };
  284. #endif
  285.  
  286.  
  287. #if YYDEBUG != 0 || defined (YYERROR_VERBOSE)
  288.  
  289. static const char * const yytname[] = {   "$","error","$undefined.","IDL_ANY",
  290. "ATTRIBUTE","BOOLEAN","CASE","CHAR","CONST","CONTEXT","DEFAULT","DOUBLE","ENUM",
  291. "EXCEPTION","IDENTIFIER","IN","INOUT","INTERFACE","IDL_FALSE","FIXED","FLOAT",
  292. "LONG","MODULE","NATIVE","OBJECT","OCTET","ONEWAY","OUT","PRAGMA","RAISES","READONLY",
  293. "SCOPE_DELIMITER","SEQUENCE","SHORT","STRING","STRUCT","SWITCH","IDL_TRUE","TYPEDEF",
  294. "UNION","UNSIGNED","VOID","WCHAR","WSTRING","CHARACTER_LITERAL","WIDE_CHARACTER_LITERAL",
  295. "FLOATING_PT_LITERAL","INTEGER_LITERAL","STRING_LITERAL","WIDE_STRING_LITERAL",
  296. "FIXED_PT_LITERAL","LEFT_SHIFT","RIGHT_SHIFT","';'","'{'","'}'","':'","','",
  297. "'='","'|'","'^'","'&'","'+'","'-'","'*'","'/'","'%'","'~'","'('","')'","'<'",
  298. "'>'","'['","']'","start","specification","@1","definition_PLUS","definition",
  299. "module","@2","interface","interface_dcl","@3","forward_dcl","export_STAR","export",
  300. "inheritance_spec","scoped_name_CSV_PLUS","scoped_name_CSV","scoped_name","const_dcl",
  301. "const_type","const_expr","or_expr","xor_expr","and_expr","shift_expr","add_expr",
  302. "mult_expr","unary_expr","primary_expr","literal","integer_literal","boolean_literal",
  303. "positive_int_const","type_dcl","type_declarator","type_spec","simple_type_spec",
  304. "base_type_spec","template_type_spec","constr_type_spec","declarator_CSV_PLUS",
  305. "declarator_CSV","declarator","simple_declarator","floating_pt_type","integer_type",
  306. "signed_int","signed_short_int","signed_long_int","signed_longlong_int","unsigned_int",
  307. "unsigned_short_int","unsigned_long_int","unsigned_longlong_int","char_type",
  308. "wide_char_type","boolean_type","octet_type","any_type","object_type","struct_type",
  309. "@4","member_PLUS","member_STAR","member","union_type","@5","switch_type_spec",
  310. "case_PLUS","case_STAR","case","case_label_PLUS","case_label_STAR","case_label",
  311. "element_spec","enum_type","@6","enumerator_CSV_PLUS","enumerator_CSV_STAR",
  312. "enumerator","sequence_type","string_type","wide_string_type","array_declarator",
  313. "fixed_array_size_PLUS","fixed_array_size_STAR","fixed_array_size","attr_dcl",
  314. "readonly_OPT","simple_declarator_CSV_PLUS","simple_declarator_CSV_STAR","except_dcl",
  315. "@7","op_dcl","@8","op_attribute_OPT","op_type_spec","parameter_dcls","param_dcl_CSV_PLUS",
  316. "param_dcl_CSV_STAR","param_dcl","param_attribute","raises_expr_OPT","raises_expr",
  317. "context_expr_OPT","context_expr","string_literal_CSV_PLUS","string_literal_CSV_STAR",
  318. "param_type_spec","fixed_pt_type","fixed_pt_const_type", NULL
  319. };
  320. #endif
  321.  
  322. static const short yyr1[] = {     0,
  323.     74,    74,    76,    75,    77,    77,    78,    78,    78,    78,
  324.     78,    78,    80,    79,    81,    81,    83,    82,    84,    85,
  325.     85,    86,    86,    86,    86,    86,    86,    87,    87,    88,
  326.     89,    89,    90,    90,    90,    91,    92,    92,    92,    92,
  327.     92,    92,    92,    92,    92,    93,    94,    94,    95,    95,
  328.     96,    96,    97,    97,    97,    98,    98,    98,    99,    99,
  329.     99,    99,   100,   100,   100,   100,   101,   101,   101,   102,
  330.    102,   102,   102,   102,   102,   103,   104,   104,   105,   106,
  331.    106,   106,   106,   106,   107,   108,   108,   109,   109,   109,
  332.    110,   110,   110,   110,   110,   110,   110,   110,   111,   111,
  333.    111,   111,   112,   112,   112,   113,   114,   114,   115,   115,
  334.    116,   117,   117,   117,   118,   118,   119,   119,   119,   120,
  335.    121,   122,   123,   123,   123,   124,   125,   126,   127,   128,
  336.    129,   130,   131,   132,   134,   133,   135,   136,   136,   137,
  337.    139,   138,   140,   140,   140,   140,   140,   141,   142,   142,
  338.    143,   144,   145,   145,   146,   146,   147,   149,   148,   150,
  339.    151,   151,   152,   153,   153,   154,   154,   155,   155,   156,
  340.    157,   158,   158,   159,   160,   161,   161,   162,   163,   163,
  341.    165,   164,   167,   166,   168,   168,   169,   169,   170,   170,
  342.    171,   172,   172,   173,   174,   174,   174,   175,   175,   176,
  343.    177,   177,   178,   179,   180,   180,   181,   181,   181,   181,
  344.    181,   182,   183
  345. };
  346.  
  347. static const short yyr2[] = {     0,
  348.      0,     1,     0,     2,     1,     2,     2,     2,     2,     2,
  349.      2,     1,     0,     6,     1,     1,     0,     7,     2,     0,
  350.      2,     2,     2,     2,     2,     2,     1,     0,     2,     2,
  351.      0,     3,     1,     2,     3,     5,     1,     1,     1,     1,
  352.      1,     1,     1,     1,     1,     1,     1,     3,     1,     3,
  353.      1,     3,     1,     3,     3,     1,     3,     3,     1,     3,
  354.      3,     3,     2,     2,     2,     1,     1,     1,     3,     1,
  355.      1,     1,     1,     1,     1,     1,     1,     1,     1,     2,
  356.      1,     1,     1,     2,     2,     1,     1,     1,     1,     1,
  357.      1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
  358.      1,     1,     1,     1,     1,     2,     0,     3,     1,     1,
  359.      1,     1,     1,     2,     1,     1,     1,     1,     1,     1,
  360.      1,     2,     1,     1,     1,     2,     2,     3,     1,     1,
  361.      1,     1,     1,     1,     0,     6,     2,     0,     2,     3,
  362.      0,    10,     1,     1,     1,     1,     1,     2,     0,     2,
  363.      3,     2,     0,     2,     3,     2,     2,     0,     6,     2,
  364.      0,     3,     1,     6,     4,     4,     1,     4,     1,     2,
  365.      2,     0,     2,     3,     4,     0,     1,     2,     0,     3,
  366.      0,     6,     0,     7,     0,     1,     1,     1,     3,     2,
  367.      2,     0,     3,     3,     1,     1,     1,     0,     1,     4,
  368.      0,     1,     4,     2,     0,     3,     1,     1,     1,     1,
  369.      1,     6,     1
  370. };
  371.  
  372. static const short yydefact[] = {     3,
  373.      2,     0,     0,     0,     0,     0,     0,     0,    12,     0,
  374.      0,     0,     4,     5,     0,     0,    15,    16,     0,     0,
  375.     81,    82,    83,     0,   131,   129,   113,    33,   213,   112,
  376.    121,     0,   120,   167,     0,   130,   169,    45,     0,    41,
  377.     37,   115,   117,   118,   119,   116,   123,   124,   125,    38,
  378.     39,    40,    42,    43,    44,   158,   181,    19,    13,   111,
  379.     84,   135,   133,     0,   134,   132,     0,    90,    80,     0,
  380.     86,    88,    89,    87,    91,    92,    93,    94,    95,    96,
  381.     97,    98,   103,   104,   105,    99,   100,   101,   102,     0,
  382.      6,    11,    10,     8,     7,     9,   114,   122,    34,     0,
  383.    127,   126,     0,     0,     0,     0,     0,     0,    17,     0,
  384.      0,     0,     0,   111,    85,   107,   109,   110,     0,    78,
  385.     77,    72,    74,    76,    71,    73,     0,     0,     0,     0,
  386.     67,    79,    46,    47,    49,    51,    53,    56,    59,    66,
  387.     68,    70,    75,     0,   128,     0,    35,     0,     0,   138,
  388.     29,    31,     0,     0,     0,     0,     0,     0,   170,   172,
  389.      0,   106,     0,    64,    63,    65,     0,     0,     0,     0,
  390.      0,     0,     0,     0,     0,     0,     0,   166,   168,    36,
  391.    163,     0,   161,     0,     0,   138,     0,    30,   185,     0,
  392.      0,   138,     0,     0,   165,     0,   171,   172,   107,   121,
  393.    147,   143,   144,   145,     0,   146,    69,    48,    50,    52,
  394.     55,    54,    57,    58,    60,    61,    62,   159,     0,   160,
  395.      0,   182,   139,    31,   186,    27,   177,     0,   185,     0,
  396.      0,     0,     0,     0,     0,     0,    14,   136,   137,     0,
  397.      0,   174,   173,   108,   141,   161,   140,    32,    18,    21,
  398.     23,    22,    25,     0,    24,    26,   188,   211,   207,   208,
  399.    209,     0,   187,   210,   212,   164,     0,   162,     0,   183,
  400.      0,   179,   175,     0,     0,     0,     0,   149,     0,   153,
  401.      0,   178,     0,   198,     0,   156,   142,   148,   149,     0,
  402.      0,   152,   153,   179,   195,   197,   196,   190,     0,   192,
  403.      0,     0,   201,   199,   155,   150,   157,   151,   154,   180,
  404.    189,     0,   191,     0,     0,     0,   184,   202,   192,   194,
  405.      0,     0,   193,   200,   205,     0,     0,   204,   203,   205,
  406.    206,     0,     0,     0
  407. };
  408.  
  409. static const short yydefgoto[] = {   332,
  410.      1,     2,    13,    14,    15,   110,    16,    17,   153,    18,
  411.    228,   229,   109,   151,   188,   131,    19,    39,   132,   133,
  412.    134,   135,   136,   137,   138,   139,   140,   141,   142,   143,
  413.    144,    20,    69,   184,    71,    72,    73,    74,   115,   162,
  414.    116,   117,    75,    76,    42,    43,    44,    45,    46,    47,
  415.     48,    49,    77,    78,    79,    80,    81,    82,    83,   111,
  416.    191,   185,   186,    84,   267,   205,   277,   288,   289,   279,
  417.    292,   280,   291,    85,   106,   182,   220,   183,    86,    87,
  418.     88,   118,   159,   197,   198,   232,   233,   273,   282,    24,
  419.    107,   235,   274,   236,   262,   284,   299,   313,   300,   301,
  420.    303,   304,   317,   318,   326,   328,   263,    89,    55
  421. };
  422.  
  423. static const short yypact[] = {    39,
  424. -32768,   375,   238,    28,    33,    52,    59,    92,-32768,   100,
  425.    285,   104,-32768,   375,    68,    70,-32768,-32768,    74,    77,
  426. -32768,-32768,-32768,    79,-32768,-32768,-32768,-32768,-32768,-32768,
  427.     29,   119,-32768,    64,    16,-32768,    65,   106,   124,-32768,
  428. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  429. -32768,-32768,-32768,-32768,-32768,-32768,-32768,    47,-32768,-32768,
  430. -32768,-32768,-32768,    69,-32768,-32768,    72,   106,-32768,   130,
  431. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  432. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,   109,
  433. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,     7,
  434.    125,-32768,     7,   134,    91,    97,    99,    15,-32768,   103,
  435.    107,     7,   185,    82,-32768,   111,-32768,-32768,    95,-32768,
  436. -32768,-32768,-32768,-32768,-32768,-32768,    34,    34,    34,     7,
  437.    106,-32768,   105,   113,   114,    40,    50,    31,-32768,-32768,
  438. -32768,-32768,-32768,    96,-32768,   108,-32768,     7,   156,   285,
  439. -32768,     4,   117,   375,   285,   120,   -30,     7,-32768,    82,
  440.    130,-32768,   110,-32768,-32768,-32768,   112,     7,     7,     7,
  441.      7,     7,     7,     7,     7,     7,     7,-32768,-32768,-32768,
  442. -32768,   121,   123,   130,   127,   285,    15,-32768,    81,   131,
  443.    132,   285,   138,     7,-32768,   101,-32768,    82,   111,   157,
  444.    106,-32768,-32768,-32768,   126,-32768,-32768,   113,   114,    40,
  445.     50,    50,    31,    31,-32768,-32768,-32768,-32768,   156,-32768,
  446.    140,-32768,-32768,     4,-32768,-32768,-32768,   143,    81,   147,
  447.    148,   149,   199,   154,   155,   326,-32768,-32768,-32768,   141,
  448.    142,-32768,-32768,-32768,-32768,   123,-32768,-32768,-32768,-32768,
  449. -32768,-32768,-32768,   351,-32768,-32768,-32768,   106,-32768,-32768,
  450. -32768,   197,-32768,-32768,-32768,-32768,   160,-32768,    92,-32768,
  451.     80,   158,-32768,   152,     7,   165,   167,    80,   285,    80,
  452.     92,-32768,    18,   194,   168,-32768,-32768,-32768,    80,   130,
  453.    173,-32768,    80,   158,-32768,-32768,-32768,-32768,   161,   172,
  454.    351,   164,   229,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  455. -32768,    61,-32768,    92,    15,   171,-32768,-32768,   172,-32768,
  456.    175,   192,-32768,-32768,   184,   177,   200,-32768,-32768,   184,
  457. -32768,   242,   247,-32768
  458. };
  459.  
  460. static const short yypgoto[] = {-32768,
  461. -32768,-32768,     1,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  462.     21,-32768,-32768,   -60,    32,    -3,  -166,-32768,  -117,-32768,
  463.     93,    94,    90,   -46,   -45,   -77,   -69,-32768,    71,-32768,
  464.    -86,  -165,-32768,    -6,   153,  -222,-32768,-32768,    83,    66,
  465.   -150,    -7,   265,     3,-32768,-32768,-32768,-32768,-32768,-32768,
  466. -32768,-32768,     6,   267,     9,-32768,-32768,-32768,     5,-32768,
  467. -32768,  -130,   122,     8,-32768,-32768,-32768,   -14,    11,-32768,
  468.    -10,  -250,-32768,     2,-32768,-32768,    38,    60,-32768,    -1,
  469.      0,-32768,-32768,    87,   179,-32768,-32768,-32768,    -8,  -161,
  470. -32768,-32768,-32768,-32768,-32768,-32768,-32768,   -32,   -23,-32768,
  471. -32768,-32768,-32768,-32768,-32768,   -39,  -234,  -218,-32768
  472. };
  473.  
  474.  
  475. #define    YYLAST        414
  476.  
  477.  
  478. static const short yytable[] = {    38,
  479.     61,    53,    54,    23,    70,    41,    21,    68,    50,    22,
  480.    199,    52,   167,   259,    91,    23,   146,   264,    21,   269,
  481.     28,    22,   230,   231,   120,   156,   194,   234,    28,   293,
  482.    180,   259,   295,   296,   104,   264,   101,    32,    -1,    97,
  483.    195,    56,   293,   121,   297,    32,    57,    28,   102,    98,
  484.    122,   120,   123,   124,   125,   223,   126,   164,   165,   166,
  485.    187,   239,   230,   231,    32,    58,   314,   234,   127,   128,
  486.    121,   196,    59,   129,   130,   295,   296,   122,   259,   123,
  487.    124,   125,   264,   126,  -176,   275,   298,   297,     3,   276,
  488.    171,   172,     4,     5,   175,   176,   177,   215,   216,   217,
  489.    -28,   130,   108,     8,   152,    60,   225,   241,   226,    68,
  490.    227,   173,   174,    62,    25,    10,    26,    90,    11,    12,
  491.     92,     4,    93,    28,   211,   212,    94,   213,   214,    95,
  492.    200,    96,    99,   100,   103,   -20,   104,   105,   112,   307,
  493.     32,   113,    33,   114,   119,   145,    68,   147,   148,    35,
  494.    149,    68,   150,   158,   190,    23,   154,   285,    21,   201,
  495.    155,    22,   163,   168,   206,   202,   178,   161,   203,   181,
  496.    189,   204,   169,   242,   170,   218,   193,    98,   179,   219,
  497.    207,   222,    68,   224,   124,   237,   238,    63,    68,    25,
  498.     23,    26,   247,    21,   245,    27,    22,   249,    28,   251,
  499.    252,   253,   254,    64,    30,    31,   255,   256,    65,    66,
  500.    270,   265,   266,   271,   281,    32,    67,    33,    34,   283,
  501.    286,   287,   302,   305,    35,   308,    36,    37,   312,   311,
  502.     23,   315,   258,    21,   260,   261,    22,   316,   322,   325,
  503.    327,   333,    25,   324,    26,   329,   334,   330,    27,   250,
  504.    258,    28,   260,   261,   321,   248,    29,    30,    31,   210,
  505.    208,   272,   209,   240,   244,   157,   221,    40,    32,    51,
  506.     33,    34,   290,   294,   306,    68,   192,    35,   246,    36,
  507.     37,   278,   309,   268,   243,   310,   323,    63,   319,    25,
  508.    331,    26,   160,     0,     0,    27,     4,   258,    28,   260,
  509.    261,     0,     0,    64,    30,    31,   320,     0,    65,    66,
  510.      0,   152,     0,     0,     0,    32,    67,    33,    34,    10,
  511.      0,     0,     0,    12,    35,     0,    36,    37,    63,     0,
  512.     25,     0,    26,     0,     0,     0,    27,     0,     0,    28,
  513.      0,     0,     0,     0,    64,    30,    31,     0,     0,    65,
  514.     66,     0,     0,    63,     0,    25,    32,    26,    33,    34,
  515.      0,    27,     0,     0,    28,    35,   257,    36,    37,    64,
  516.     30,    31,     0,     0,    65,    66,     0,     0,     0,     0,
  517.      0,    32,     3,    33,    34,     0,     4,     5,     0,     0,
  518.     35,     6,    36,    37,     0,     0,     7,     8,     0,     0,
  519.      0,     0,     9,     0,     0,     0,     0,     0,     0,    10,
  520.      0,     0,    11,    12
  521. };
  522.  
  523. static const short yycheck[] = {     3,
  524.      8,     3,     3,     2,    11,     3,     2,    11,     3,     2,
  525.    161,     3,   130,   236,    14,    14,   103,   236,    14,   254,
  526.     14,    14,   189,   189,    18,   112,    57,   189,    14,   280,
  527.    148,   254,    15,    16,    31,   254,    21,    31,     0,    11,
  528.     71,    14,   293,    37,    27,    31,    14,    14,    33,    21,
  529.     44,    18,    46,    47,    48,   186,    50,   127,   128,   129,
  530.     57,   192,   229,   229,    31,    14,   301,   229,    62,    63,
  531.     37,   158,    14,    67,    68,    15,    16,    44,   301,    46,
  532.     47,    48,   301,    50,     4,     6,    69,    27,     8,    10,
  533.     51,    52,    12,    13,    64,    65,    66,   175,   176,   177,
  534.     54,    68,    56,    23,   108,    14,    26,   194,    28,   113,
  535.     30,    62,    63,    14,     5,    35,     7,    14,    38,    39,
  536.     53,    12,    53,    14,   171,   172,    53,   173,   174,    53,
  537.     21,    53,    14,    70,    70,    55,    31,    14,    70,   290,
  538.     31,    70,    33,    14,    36,    21,   150,    14,    58,    40,
  539.     54,   155,    54,    72,   154,   154,    54,   275,   154,   163,
  540.     54,   154,    68,    59,   163,   163,    71,    57,   163,    14,
  541.     54,   163,    60,    73,    61,    55,    57,    21,    71,    57,
  542.     69,    55,   186,   187,    47,    55,    55,     3,   192,     5,
  543.    189,     7,    53,   189,    69,    11,   189,    55,    14,    53,
  544.     53,    53,     4,    19,    20,    21,    53,    53,    24,    25,
  545.     14,    71,    71,    54,    57,    31,    32,    33,    34,    68,
  546.     56,    55,    29,    56,    40,    53,    42,    43,    57,    69,
  547.    229,    68,   236,   229,   236,   236,   229,     9,    68,    48,
  548.     57,     0,     5,    69,     7,    69,     0,    48,    11,   229,
  549.    254,    14,   254,   254,   315,   224,    19,    20,    21,   170,
  550.    168,   269,   169,   193,   199,   113,   184,     3,    31,     3,
  551.     33,    34,   279,   281,   289,   279,   155,    40,   219,    42,
  552.     43,   271,   293,   246,   198,   294,   319,     3,   312,     5,
  553.    330,     7,   114,    -1,    -1,    11,    12,   301,    14,   301,
  554.    301,    -1,    -1,    19,    20,    21,   314,    -1,    24,    25,
  555.     -1,   315,    -1,    -1,    -1,    31,    32,    33,    34,    35,
  556.     -1,    -1,    -1,    39,    40,    -1,    42,    43,     3,    -1,
  557.      5,    -1,     7,    -1,    -1,    -1,    11,    -1,    -1,    14,
  558.     -1,    -1,    -1,    -1,    19,    20,    21,    -1,    -1,    24,
  559.     25,    -1,    -1,     3,    -1,     5,    31,     7,    33,    34,
  560.     -1,    11,    -1,    -1,    14,    40,    41,    42,    43,    19,
  561.     20,    21,    -1,    -1,    24,    25,    -1,    -1,    -1,    -1,
  562.     -1,    31,     8,    33,    34,    -1,    12,    13,    -1,    -1,
  563.     40,    17,    42,    43,    -1,    -1,    22,    23,    -1,    -1,
  564.     -1,    -1,    28,    -1,    -1,    -1,    -1,    -1,    -1,    35,
  565.     -1,    -1,    38,    39
  566. };
  567. /* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
  568. #line 3 "/opt/local/share/bison.simple"
  569.  
  570. /* Skeleton output parser for bison,
  571.    Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
  572.  
  573.    This program is free software; you can redistribute it and/or modify
  574.    it under the terms of the GNU General Public License as published by
  575.    the Free Software Foundation; either version 2, or (at your option)
  576.    any later version.
  577.  
  578.    This program is distributed in the hope that it will be useful,
  579.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  580.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  581.    GNU General Public License for more details.
  582.  
  583.    You should have received a copy of the GNU General Public License
  584.    along with this program; if not, write to the Free Software
  585.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  586.  
  587. /* As a special exception, when this file is copied by Bison into a
  588.    Bison output file, you may use that output file without restriction.
  589.    This special exception was added by the Free Software Foundation
  590.    in version 1.24 of Bison.  */
  591.  
  592. #ifndef alloca
  593. #ifdef __GNUC__
  594. #define alloca __builtin_alloca
  595. #else /* not GNU C.  */
  596. #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)
  597. #include <alloca.h>
  598. #else /* not sparc */
  599. #if defined (MSDOS) && !defined (__TURBOC__)
  600. #include <malloc.h>
  601. #else /* not MSDOS, or __TURBOC__ */
  602. #if defined(_AIX)
  603. #include <malloc.h>
  604.  #pragma alloca
  605. #else /* not MSDOS, __TURBOC__, or _AIX */
  606. #ifdef __hpux
  607. #ifdef __cplusplus
  608. extern "C" {
  609. void *alloca (unsigned int);
  610. };
  611. #else /* not __cplusplus */
  612. void *alloca ();
  613. #endif /* not __cplusplus */
  614. #endif /* __hpux */
  615. #endif /* not _AIX */
  616. #endif /* not MSDOS, or __TURBOC__ */
  617. #endif /* not sparc.  */
  618. #endif /* not GNU C.  */
  619. #endif /* alloca not defined.  */
  620.  
  621. /* This is the parser code that is written into each bison parser
  622.   when the %semantic_parser declaration is not specified in the grammar.
  623.   It was written by Richard Stallman by simplifying the hairy parser
  624.   used when %semantic_parser is specified.  */
  625.  
  626. /* Note: there must be only one dollar sign in this file.
  627.    It is replaced by the list of actions, each action
  628.    as one case of the switch.  */
  629.  
  630. #define yyerrok        (yyerrstatus = 0)
  631. #define yyclearin    (yychar = YYEMPTY)
  632. #define YYEMPTY        -2
  633. #define YYEOF        0
  634. #define YYACCEPT    return(0)
  635. #define YYABORT     return(1)
  636. #define YYERROR        goto yyerrlab1
  637. /* Like YYERROR except do call yyerror.
  638.    This remains here temporarily to ease the
  639.    transition to the new meaning of YYERROR, for GCC.
  640.    Once GCC version 2 has supplanted version 1, this can go.  */
  641. #define YYFAIL        goto yyerrlab
  642. #define YYRECOVERING()  (!!yyerrstatus)
  643. #define YYBACKUP(token, value) \
  644. do                                \
  645.   if (yychar == YYEMPTY && yylen == 1)                \
  646.     { yychar = (token), yylval = (value);            \
  647.       yychar1 = YYTRANSLATE (yychar);                \
  648.       YYPOPSTACK;                        \
  649.       goto yybackup;                        \
  650.     }                                \
  651.   else                                \
  652.     { yyerror ("syntax error: cannot back up"); YYERROR; }    \
  653. while (0)
  654.  
  655. #define YYTERROR    1
  656. #define YYERRCODE    256
  657.  
  658. #ifndef YYPURE
  659. #define YYLEX        yylex()
  660. #endif
  661.  
  662. #ifdef YYPURE
  663. #ifdef YYLSP_NEEDED
  664. #ifdef YYLEX_PARAM
  665. #define YYLEX        yylex(&yylval, &yylloc, YYLEX_PARAM)
  666. #else
  667. #define YYLEX        yylex(&yylval, &yylloc)
  668. #endif
  669. #else /* not YYLSP_NEEDED */
  670. #ifdef YYLEX_PARAM
  671. #define YYLEX        yylex(&yylval, YYLEX_PARAM)
  672. #else
  673. #define YYLEX        yylex(&yylval)
  674. #endif
  675. #endif /* not YYLSP_NEEDED */
  676. #endif
  677.  
  678. /* If nonreentrant, generate the variables here */
  679.  
  680. #ifndef YYPURE
  681.  
  682. int    yychar;            /*  the lookahead symbol        */
  683. YYSTYPE    yylval;            /*  the semantic value of the        */
  684.                 /*  lookahead symbol            */
  685.  
  686. #ifdef YYLSP_NEEDED
  687. YYLTYPE yylloc;            /*  location data for the lookahead    */
  688.                 /*  symbol                */
  689. #endif
  690.  
  691. int yynerrs;            /*  number of parse errors so far       */
  692. #endif  /* not YYPURE */
  693.  
  694. #if YYDEBUG != 0
  695. int yydebug;            /*  nonzero means print parse trace    */
  696. /* Since this is uninitialized, it does not stop multiple parsers
  697.    from coexisting.  */
  698. #endif
  699.  
  700. /*  YYINITDEPTH indicates the initial size of the parser's stacks    */
  701.  
  702. #ifndef    YYINITDEPTH
  703. #define YYINITDEPTH 200
  704. #endif
  705.  
  706. /*  YYMAXDEPTH is the maximum size the stacks can grow to
  707.     (effective only if the built-in stack extension method is used).  */
  708.  
  709. #if YYMAXDEPTH == 0
  710. #undef YYMAXDEPTH
  711. #endif
  712.  
  713. #ifndef YYMAXDEPTH
  714. #define YYMAXDEPTH 10000
  715. #endif
  716.  
  717. /* Prevent warning if -Wstrict-prototypes.  */
  718. #ifdef __GNUC__
  719. int yyparse (void);
  720. #endif
  721.  
  722. #if __GNUC__ > 1        /* GNU C and GNU C++ define this.  */
  723. #define __yy_memcpy(TO,FROM,COUNT)    __builtin_memcpy(TO,FROM,COUNT)
  724. #else                /* not GNU C or C++ */
  725. #ifndef __cplusplus
  726.  
  727. /* This is the most reliable way to avoid incompatibilities
  728.    in available built-in functions on various systems.  */
  729. static void
  730. __yy_memcpy (to, from, count)
  731.      char *to;
  732.      char *from;
  733.      int count;
  734. {
  735.   register char *f = from;
  736.   register char *t = to;
  737.   register int i = count;
  738.  
  739.   while (i-- > 0)
  740.     *t++ = *f++;
  741. }
  742.  
  743. #else /* __cplusplus */
  744.  
  745. /* This is the most reliable way to avoid incompatibilities
  746.    in available built-in functions on various systems.  */
  747. static void
  748. __yy_memcpy (char *to, char *from, int count)
  749. {
  750.   register char *f = from;
  751.   register char *t = to;
  752.   register int i = count;
  753.  
  754.   while (i-- > 0)
  755.     *t++ = *f++;
  756. }
  757.  
  758. #endif
  759. #endif
  760.  
  761. #line 196 "/opt/local/share/bison.simple"
  762.  
  763. /* The user can define YYPARSE_PARAM as the name of an argument to be passed
  764.    into yyparse.  The argument should have type void *.
  765.    It should actually point to an object.
  766.    Grammar actions can access the variable by casting it
  767.    to the proper pointer type.  */
  768.  
  769. #ifdef YYPARSE_PARAM
  770. #ifdef __cplusplus
  771. #define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
  772. #define YYPARSE_PARAM_DECL
  773. #else /* not __cplusplus */
  774. #define YYPARSE_PARAM_ARG YYPARSE_PARAM
  775. #define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
  776. #endif /* not __cplusplus */
  777. #else /* not YYPARSE_PARAM */
  778. #define YYPARSE_PARAM_ARG
  779. #define YYPARSE_PARAM_DECL
  780. #endif /* not YYPARSE_PARAM */
  781.  
  782. int
  783. yyparse(YYPARSE_PARAM_ARG)
  784.      YYPARSE_PARAM_DECL
  785. {
  786.   register int yystate;
  787.   register int yyn;
  788.   register short *yyssp;
  789.   register YYSTYPE *yyvsp;
  790.   int yyerrstatus;    /*  number of tokens to shift before error messages enabled */
  791.   int yychar1 = 0;        /*  lookahead token as an internal (translated) token number */
  792.  
  793.   short    yyssa[YYINITDEPTH];    /*  the state stack            */
  794.   YYSTYPE yyvsa[YYINITDEPTH];    /*  the semantic value stack        */
  795.  
  796.   short *yyss = yyssa;        /*  refer to the stacks thru separate pointers */
  797.   YYSTYPE *yyvs = yyvsa;    /*  to allow yyoverflow to reallocate them elsewhere */
  798.  
  799. #ifdef YYLSP_NEEDED
  800.   YYLTYPE yylsa[YYINITDEPTH];    /*  the location stack            */
  801.   YYLTYPE *yyls = yylsa;
  802.   YYLTYPE *yylsp;
  803.  
  804. #define YYPOPSTACK   (yyvsp--, yyssp--, yylsp--)
  805. #else
  806. #define YYPOPSTACK   (yyvsp--, yyssp--)
  807. #endif
  808.  
  809.   int yystacksize = YYINITDEPTH;
  810.  
  811. #ifdef YYPURE
  812.   int yychar;
  813.   YYSTYPE yylval;
  814.   int yynerrs;
  815. #ifdef YYLSP_NEEDED
  816.   YYLTYPE yylloc;
  817. #endif
  818. #endif
  819.  
  820.   YYSTYPE yyval;        /*  the variable used to return        */
  821.                 /*  semantic values from the action    */
  822.                 /*  routines                */
  823.  
  824.   int yylen;
  825.  
  826. #if YYDEBUG != 0
  827.   if (yydebug)
  828.     fprintf(stderr, "Starting parse\n");
  829. #endif
  830.  
  831.   yystate = 0;
  832.   yyerrstatus = 0;
  833.   yynerrs = 0;
  834.   yychar = YYEMPTY;        /* Cause a token to be read.  */
  835.  
  836.   /* Initialize stack pointers.
  837.      Waste one element of value and location stack
  838.      so that they stay on the same level as the state stack.
  839.      The wasted elements are never initialized.  */
  840.  
  841.   yyssp = yyss - 1;
  842.   yyvsp = yyvs;
  843. #ifdef YYLSP_NEEDED
  844.   yylsp = yyls;
  845. #endif
  846.  
  847. /* Push a new state, which is found in  yystate  .  */
  848. /* In all cases, when you get here, the value and location stacks
  849.    have just been pushed. so pushing a state here evens the stacks.  */
  850. yynewstate:
  851.  
  852.   *++yyssp = yystate;
  853.  
  854.   if (yyssp >= yyss + yystacksize - 1)
  855.     {
  856.       /* Give user a chance to reallocate the stack */
  857.       /* Use copies of these so that the &'s don't force the real ones into memory. */
  858.       YYSTYPE *yyvs1 = yyvs;
  859.       short *yyss1 = yyss;
  860. #ifdef YYLSP_NEEDED
  861.       YYLTYPE *yyls1 = yyls;
  862. #endif
  863.  
  864.       /* Get the current used size of the three stacks, in elements.  */
  865.       int size = yyssp - yyss + 1;
  866.  
  867. #ifdef yyoverflow
  868.       /* Each stack pointer address is followed by the size of
  869.      the data in use in that stack, in bytes.  */
  870. #ifdef YYLSP_NEEDED
  871.       /* This used to be a conditional around just the two extra args,
  872.      but that might be undefined if yyoverflow is a macro.  */
  873.       yyoverflow("parser stack overflow",
  874.          &yyss1, size * sizeof (*yyssp),
  875.          &yyvs1, size * sizeof (*yyvsp),
  876.          &yyls1, size * sizeof (*yylsp),
  877.          &yystacksize);
  878. #else
  879.       yyoverflow("parser stack overflow",
  880.          &yyss1, size * sizeof (*yyssp),
  881.          &yyvs1, size * sizeof (*yyvsp),
  882.          &yystacksize);
  883. #endif
  884.  
  885.       yyss = yyss1; yyvs = yyvs1;
  886. #ifdef YYLSP_NEEDED
  887.       yyls = yyls1;
  888. #endif
  889. #else /* no yyoverflow */
  890.       /* Extend the stack our own way.  */
  891.       if (yystacksize >= YYMAXDEPTH)
  892.     {
  893.       yyerror("parser stack overflow");
  894.       return 2;
  895.     }
  896.       yystacksize *= 2;
  897.       if (yystacksize > YYMAXDEPTH)
  898.     yystacksize = YYMAXDEPTH;
  899.       yyss = (short *) alloca (yystacksize * sizeof (*yyssp));
  900.       __yy_memcpy ((char *)yyss, (char *)yyss1, size * sizeof (*yyssp));
  901.       yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp));
  902.       __yy_memcpy ((char *)yyvs, (char *)yyvs1, size * sizeof (*yyvsp));
  903. #ifdef YYLSP_NEEDED
  904.       yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp));
  905.       __yy_memcpy ((char *)yyls, (char *)yyls1, size * sizeof (*yylsp));
  906. #endif
  907. #endif /* no yyoverflow */
  908.  
  909.       yyssp = yyss + size - 1;
  910.       yyvsp = yyvs + size - 1;
  911. #ifdef YYLSP_NEEDED
  912.       yylsp = yyls + size - 1;
  913. #endif
  914.  
  915. #if YYDEBUG != 0
  916.       if (yydebug)
  917.     fprintf(stderr, "Stack size increased to %d\n", yystacksize);
  918. #endif
  919.  
  920.       if (yyssp >= yyss + yystacksize - 1)
  921.     YYABORT;
  922.     }
  923.  
  924. #if YYDEBUG != 0
  925.   if (yydebug)
  926.     fprintf(stderr, "Entering state %d\n", yystate);
  927. #endif
  928.  
  929.   goto yybackup;
  930.  yybackup:
  931.  
  932. /* Do appropriate processing given the current state.  */
  933. /* Read a lookahead token if we need one and don't already have one.  */
  934. /* yyresume: */
  935.  
  936.   /* First try to decide what to do without reference to lookahead token.  */
  937.  
  938.   yyn = yypact[yystate];
  939.   if (yyn == YYFLAG)
  940.     goto yydefault;
  941.  
  942.   /* Not known => get a lookahead token if don't already have one.  */
  943.  
  944.   /* yychar is either YYEMPTY or YYEOF
  945.      or a valid token in external form.  */
  946.  
  947.   if (yychar == YYEMPTY)
  948.     {
  949. #if YYDEBUG != 0
  950.       if (yydebug)
  951.     fprintf(stderr, "Reading a token: ");
  952. #endif
  953.       yychar = YYLEX;
  954.     }
  955.  
  956.   /* Convert token to internal form (in yychar1) for indexing tables with */
  957.  
  958.   if (yychar <= 0)        /* This means end of input. */
  959.     {
  960.       yychar1 = 0;
  961.       yychar = YYEOF;        /* Don't call YYLEX any more */
  962.  
  963. #if YYDEBUG != 0
  964.       if (yydebug)
  965.     fprintf(stderr, "Now at end of input.\n");
  966. #endif
  967.     }
  968.   else
  969.     {
  970.       yychar1 = YYTRANSLATE(yychar);
  971.  
  972. #if YYDEBUG != 0
  973.       if (yydebug)
  974.     {
  975.       fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
  976.       /* Give the individual parser a way to print the precise meaning
  977.          of a token, for further debugging info.  */
  978. #ifdef YYPRINT
  979.       YYPRINT (stderr, yychar, yylval);
  980. #endif
  981.       fprintf (stderr, ")\n");
  982.     }
  983. #endif
  984.     }
  985.  
  986.   yyn += yychar1;
  987.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
  988.     goto yydefault;
  989.  
  990.   yyn = yytable[yyn];
  991.  
  992.   /* yyn is what to do for this token type in this state.
  993.      Negative => reduce, -yyn is rule number.
  994.      Positive => shift, yyn is new state.
  995.        New state is final state => don't bother to shift,
  996.        just return success.
  997.      0, or most negative number => error.  */
  998.  
  999.   if (yyn < 0)
  1000.     {
  1001.       if (yyn == YYFLAG)
  1002.     goto yyerrlab;
  1003.       yyn = -yyn;
  1004.       goto yyreduce;
  1005.     }
  1006.   else if (yyn == 0)
  1007.     goto yyerrlab;
  1008.  
  1009.   if (yyn == YYFINAL)
  1010.     YYACCEPT;
  1011.  
  1012.   /* Shift the lookahead token.  */
  1013.  
  1014. #if YYDEBUG != 0
  1015.   if (yydebug)
  1016.     fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
  1017. #endif
  1018.  
  1019.   /* Discard the token being shifted unless it is eof.  */
  1020.   if (yychar != YYEOF)
  1021.     yychar = YYEMPTY;
  1022.  
  1023.   *++yyvsp = yylval;
  1024. #ifdef YYLSP_NEEDED
  1025.   *++yylsp = yylloc;
  1026. #endif
  1027.  
  1028.   /* count tokens shifted since error; after three, turn off error status.  */
  1029.   if (yyerrstatus) yyerrstatus--;
  1030.  
  1031.   yystate = yyn;
  1032.   goto yynewstate;
  1033.  
  1034. /* Do the default action for the current state.  */
  1035. yydefault:
  1036.  
  1037.   yyn = yydefact[yystate];
  1038.   if (yyn == 0)
  1039.     goto yyerrlab;
  1040.  
  1041. /* Do a reduction.  yyn is the number of a rule to reduce with.  */
  1042. yyreduce:
  1043.   yylen = yyr2[yyn];
  1044.   if (yylen > 0)
  1045.     yyval = yyvsp[1-yylen]; /* implement default value of the action */
  1046.  
  1047. #if YYDEBUG != 0
  1048.   if (yydebug)
  1049.     {
  1050.       int i;
  1051.  
  1052.       fprintf (stderr, "Reducing via rule %d (line %d), ",
  1053.            yyn, yyrline[yyn]);
  1054.  
  1055.       /* Print the symbols being reduced, and their result.  */
  1056.       for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
  1057.     fprintf (stderr, "%s ", yytname[yyrhs[i]]);
  1058.       fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
  1059.     }
  1060. #endif
  1061.  
  1062.  
  1063.   switch (yyn) {
  1064.  
  1065. case 3:
  1066. #line 124 "grammar.y"
  1067. {
  1068.                 CALL_0("specification_start");
  1069.                 CHECK_EXCEPTION;
  1070.                         ;
  1071.     break;}
  1072. case 4:
  1073. #line 129 "grammar.y"
  1074. {
  1075.                 CALL_0("specification_end");
  1076.                 CHECK_EXCEPTION;
  1077.                         ;
  1078.     break;}
  1079. case 12:
  1080. #line 151 "grammar.y"
  1081. {
  1082.                 CALL_1("pragma", yyvsp[0]);
  1083.                 CHECK_EXCEPTION;
  1084.                         ;
  1085.     break;}
  1086. case 13:
  1087. #line 158 "grammar.y"
  1088. {
  1089.                 CALL_1("module_header", yyvsp[0]);
  1090.                 CHECK_EXCEPTION;
  1091.             ;
  1092.     break;}
  1093. case 14:
  1094. #line 163 "grammar.y"
  1095. {
  1096.                 CALL_0("module_body");
  1097.                 CHECK_EXCEPTION;
  1098.             ;
  1099.     break;}
  1100. case 17:
  1101. #line 175 "grammar.y"
  1102. {
  1103.                 yyval = CALL_2("interface_dcl_header", yyvsp[-1], yyvsp[0]);
  1104.                 CHECK_EXCEPTION;
  1105.             ;
  1106.     break;}
  1107. case 18:
  1108. #line 180 "grammar.y"
  1109. {
  1110.                 CALL_1("interface_dcl_body", yyvsp[-3]);
  1111.                 CHECK_EXCEPTION;
  1112.             ;
  1113.     break;}
  1114. case 19:
  1115. #line 187 "grammar.y"
  1116. {
  1117.                 CALL_1("foward_dcl", yyvsp[0]);
  1118.                 CHECK_EXCEPTION;
  1119.             ;
  1120.     break;}
  1121. case 27:
  1122. #line 209 "grammar.y"
  1123. {
  1124.                 CALL_1("pragma", yyvsp[0]);
  1125.                 CHECK_EXCEPTION;
  1126.                         ;
  1127.     break;}
  1128. case 28:
  1129. #line 216 "grammar.y"
  1130. {
  1131.                 yyval = CALL_0("inheritance_spec_empty");
  1132.                 CHECK_EXCEPTION;
  1133.                         ;
  1134.     break;}
  1135. case 29:
  1136. #line 222 "grammar.y"
  1137. {
  1138.                 yyval = CALL_1("inheritance_spec_full", yyvsp[0]);
  1139.                 CHECK_EXCEPTION;
  1140.             ;
  1141.     break;}
  1142. case 30:
  1143. #line 229 "grammar.y"
  1144. {
  1145.                 yyval = CALL_2("list_insert", yyvsp[-1], yyvsp[0]);
  1146.                 CHECK_EXCEPTION;
  1147.             ;
  1148.     break;}
  1149. case 31:
  1150. #line 236 "grammar.y"
  1151. {
  1152.                 yyval = CALL_0("list_empty");
  1153.                 CHECK_EXCEPTION;
  1154.             ;
  1155.     break;}
  1156. case 32:
  1157. #line 242 "grammar.y"
  1158. {
  1159.                 yyval = CALL_2("list_insert", yyvsp[-1], yyvsp[0]);
  1160.                 CHECK_EXCEPTION;
  1161.             ;
  1162.     break;}
  1163. case 34:
  1164. #line 251 "grammar.y"
  1165. {
  1166.                 yyval = CALL_1("scoped_name_absolute", yyvsp[0]);
  1167.                 CHECK_EXCEPTION;
  1168.                         ;
  1169.     break;}
  1170. case 35:
  1171. #line 257 "grammar.y"
  1172. {
  1173.                 yyval = CALL_2("scoped_name_relative", yyvsp[-2], yyvsp[0]);
  1174.                 CHECK_EXCEPTION;
  1175.             ;
  1176.     break;}
  1177. case 36:
  1178. #line 264 "grammar.y"
  1179. {
  1180.                 yyval = CALL_3("const_dcl", yyvsp[-3], yyvsp[-2], yyvsp[0]);
  1181.                 CHECK_EXCEPTION;
  1182.             ;
  1183.     break;}
  1184. case 45:
  1185. #line 287 "grammar.y"
  1186. {
  1187.                 yyval = CALL_1("const_type_scoped_name", yyvsp[0]);
  1188.                 CHECK_EXCEPTION;
  1189.             ;
  1190.     break;}
  1191. case 48:
  1192. #line 299 "grammar.y"
  1193. {
  1194.                 yyval = CALL_2("or_expr", yyvsp[-2], yyvsp[0]);
  1195.                 CHECK_EXCEPTION;
  1196.             ;
  1197.     break;}
  1198. case 50:
  1199. #line 308 "grammar.y"
  1200. {
  1201.                 yyval = CALL_2("xor_expr", yyvsp[-2], yyvsp[0]);
  1202.                 CHECK_EXCEPTION;
  1203.             ;
  1204.     break;}
  1205. case 52:
  1206. #line 317 "grammar.y"
  1207. {
  1208.                 yyval = CALL_2("and_expr", yyvsp[-2], yyvsp[0]);
  1209.                 CHECK_EXCEPTION;
  1210.             ;
  1211.     break;}
  1212. case 54:
  1213. #line 326 "grammar.y"
  1214. {
  1215.                 yyval = CALL_2("shift_expr_right", yyvsp[-2], yyvsp[0]);
  1216.                 CHECK_EXCEPTION;
  1217.             ;
  1218.     break;}
  1219. case 55:
  1220. #line 332 "grammar.y"
  1221. {
  1222.                 yyval = CALL_2("shift_expr_left", yyvsp[-2], yyvsp[0]);
  1223.                 CHECK_EXCEPTION;
  1224.             ;
  1225.     break;}
  1226. case 57:
  1227. #line 341 "grammar.y"
  1228. {
  1229.                 yyval = CALL_2("add_expr_add", yyvsp[-2], yyvsp[0]);
  1230.                 CHECK_EXCEPTION;
  1231.             ;
  1232.     break;}
  1233. case 58:
  1234. #line 347 "grammar.y"
  1235. {
  1236.                 yyval = CALL_2("add_expr_subtract", yyvsp[-2], yyvsp[0]);
  1237.                 CHECK_EXCEPTION;
  1238.             ;
  1239.     break;}
  1240. case 60:
  1241. #line 356 "grammar.y"
  1242. {
  1243.                 yyval = CALL_2("mult_expr_multiply", yyvsp[-2], yyvsp[0]);
  1244.                 CHECK_EXCEPTION;
  1245.             ;
  1246.     break;}
  1247. case 61:
  1248. #line 362 "grammar.y"
  1249. {
  1250.                 yyval = CALL_2("mult_expr_divide", yyvsp[-2], yyvsp[0]);
  1251.                 CHECK_EXCEPTION;
  1252.             ;
  1253.     break;}
  1254. case 62:
  1255. #line 368 "grammar.y"
  1256. {
  1257.                 yyval = CALL_2("mult_expr_mod", yyvsp[-2], yyvsp[0]);
  1258.                 CHECK_EXCEPTION;
  1259.             ;
  1260.     break;}
  1261. case 63:
  1262. #line 375 "grammar.y"
  1263. {
  1264.                 yyval = CALL_1("unary_expr_neg", yyvsp[0]);
  1265.                 CHECK_EXCEPTION;
  1266.             ;
  1267.     break;}
  1268. case 64:
  1269. #line 381 "grammar.y"
  1270. {
  1271.                 yyval = CALL_1("unary_expr_pos", yyvsp[0]);
  1272.                 CHECK_EXCEPTION;
  1273.             ;
  1274.     break;}
  1275. case 65:
  1276. #line 387 "grammar.y"
  1277. {
  1278.                 yyval = CALL_1("unary_expr_invert", yyvsp[0]);
  1279.                 CHECK_EXCEPTION;
  1280.             ;
  1281.     break;}
  1282. case 67:
  1283. #line 396 "grammar.y"
  1284. {
  1285.                 yyval = CALL_1("primary_expr_scoped_name", yyvsp[0]);
  1286.                 CHECK_EXCEPTION;
  1287.             ;
  1288.     break;}
  1289. case 71:
  1290. #line 409 "grammar.y"
  1291. {
  1292.                 yyval = CALL_1("literal_string_literal", yyvsp[0]);
  1293.                 CHECK_EXCEPTION;
  1294.             ;
  1295.     break;}
  1296. case 72:
  1297. #line 415 "grammar.y"
  1298. {
  1299.                 yyval = CALL_1("literal_character_literal", yyvsp[0]);
  1300.                 CHECK_EXCEPTION;
  1301.             ;
  1302.     break;}
  1303. case 73:
  1304. #line 421 "grammar.y"
  1305. {
  1306.                 yyval = CALL_1("literal_fixed_pt_literal", yyvsp[0]);
  1307.                 CHECK_EXCEPTION;
  1308.             ;
  1309.     break;}
  1310. case 74:
  1311. #line 427 "grammar.y"
  1312. {
  1313.                 yyval = CALL_1("literal_floating_pt_literal", yyvsp[0]);
  1314.                 CHECK_EXCEPTION;
  1315.             ;
  1316.     break;}
  1317. case 76:
  1318. #line 436 "grammar.y"
  1319. {
  1320.                 yyval = CALL_1("literal_integer_literal", yyvsp[0]);
  1321.                 CHECK_EXCEPTION;
  1322.             ;
  1323.     break;}
  1324. case 77:
  1325. #line 443 "grammar.y"
  1326. {
  1327.                 yyval = CALL_0("boolean_literal_true");
  1328.                 CHECK_EXCEPTION;
  1329.             ;
  1330.     break;}
  1331. case 78:
  1332. #line 449 "grammar.y"
  1333. {
  1334.                 yyval = CALL_0("boolean_literal_false");
  1335.                 CHECK_EXCEPTION;
  1336.             ;
  1337.     break;}
  1338. case 79:
  1339. #line 456 "grammar.y"
  1340. {
  1341.                 yyval = CALL_1("positive_int_const", yyvsp[0]);
  1342.                 CHECK_EXCEPTION;
  1343.             ;
  1344.     break;}
  1345. case 84:
  1346. #line 471 "grammar.y"
  1347. {
  1348.                 yyval = CALL_1("native_type_dcl", yyvsp[0]);
  1349.                 CHECK_EXCEPTION;
  1350.             ;
  1351.     break;}
  1352. case 85:
  1353. #line 478 "grammar.y"
  1354. {
  1355.                 CALL_2("type_declarator", yyvsp[-1], yyvsp[0]);
  1356.                 CHECK_EXCEPTION;
  1357.             ;
  1358.     break;}
  1359. case 90:
  1360. #line 494 "grammar.y"
  1361. {
  1362.                 yyval = CALL_1("idl_type_scoped_name", yyvsp[0]);
  1363.                 CHECK_EXCEPTION;
  1364.             ;
  1365.     break;}
  1366. case 106:
  1367. #line 534 "grammar.y"
  1368. {
  1369.                 yyval = CALL_2("list_insert", yyvsp[-1], yyvsp[0]);
  1370.                 CHECK_EXCEPTION;
  1371.             ;
  1372.     break;}
  1373. case 107:
  1374. #line 541 "grammar.y"
  1375. {
  1376.                 yyval = CALL_0("list_empty");
  1377.                 CHECK_EXCEPTION;
  1378.             ;
  1379.     break;}
  1380. case 108:
  1381. #line 547 "grammar.y"
  1382. {
  1383.                 yyval = CALL_2("list_insert", yyvsp[-1], yyvsp[0]);
  1384.                 CHECK_EXCEPTION;
  1385.             ;
  1386.     break;}
  1387. case 111:
  1388. #line 559 "grammar.y"
  1389. {
  1390.                 yyval = CALL_1("simple_declarator", yyvsp[0]);
  1391.                 CHECK_EXCEPTION;
  1392.             ;
  1393.     break;}
  1394. case 112:
  1395. #line 566 "grammar.y"
  1396. {
  1397.                 yyval = CALL_0("float_type");
  1398.                 CHECK_EXCEPTION;
  1399.             ;
  1400.     break;}
  1401. case 113:
  1402. #line 572 "grammar.y"
  1403. {
  1404.                 yyval = CALL_0("double_type");
  1405.                 CHECK_EXCEPTION;
  1406.             ;
  1407.     break;}
  1408. case 114:
  1409. #line 578 "grammar.y"
  1410. {
  1411.                 yyval = CALL_0("longdouble_type");
  1412.                 CHECK_EXCEPTION;
  1413.             ;
  1414.     break;}
  1415. case 120:
  1416. #line 597 "grammar.y"
  1417. {
  1418.                 yyval = CALL_0("signed_short_int");
  1419.                 CHECK_EXCEPTION;
  1420.             ;
  1421.     break;}
  1422. case 121:
  1423. #line 604 "grammar.y"
  1424. {
  1425.                 yyval = CALL_0("signed_long_int");
  1426.                 CHECK_EXCEPTION;
  1427.             ;
  1428.     break;}
  1429. case 122:
  1430. #line 611 "grammar.y"
  1431. {
  1432.                 yyval = CALL_0("signed_longlong_int");
  1433.                 CHECK_EXCEPTION;
  1434.             ;
  1435.     break;}
  1436. case 126:
  1437. #line 625 "grammar.y"
  1438. {
  1439.                 yyval = CALL_0("unsigned_short_int");
  1440.                 CHECK_EXCEPTION;
  1441.             ;
  1442.     break;}
  1443. case 127:
  1444. #line 632 "grammar.y"
  1445. {
  1446.                 yyval = CALL_0("unsigned_long_int");
  1447.                 CHECK_EXCEPTION;
  1448.             ;
  1449.     break;}
  1450. case 128:
  1451. #line 639 "grammar.y"
  1452. {
  1453.                 yyval = CALL_0("unsigned_longlong_int");
  1454.                 CHECK_EXCEPTION;
  1455.             ;
  1456.     break;}
  1457. case 129:
  1458. #line 646 "grammar.y"
  1459. {
  1460.                 yyval = CALL_0("char_type");
  1461.                 CHECK_EXCEPTION;
  1462.             ;
  1463.     break;}
  1464. case 130:
  1465. #line 653 "grammar.y"
  1466. {
  1467.                 yyval = CALL_0("wide_char_type");
  1468.                 CHECK_EXCEPTION;
  1469.             ;
  1470.     break;}
  1471. case 131:
  1472. #line 660 "grammar.y"
  1473. {
  1474.                 yyval = CALL_0("boolean_type");
  1475.                 CHECK_EXCEPTION;
  1476.             ;
  1477.     break;}
  1478. case 132:
  1479. #line 667 "grammar.y"
  1480. {
  1481.                 yyval = CALL_0("octet_type");
  1482.                 CHECK_EXCEPTION;
  1483.             ;
  1484.     break;}
  1485. case 133:
  1486. #line 674 "grammar.y"
  1487. {
  1488.                 yyval = CALL_0("any_type");
  1489.                 CHECK_EXCEPTION;
  1490.             ;
  1491.     break;}
  1492. case 134:
  1493. #line 681 "grammar.y"
  1494. {
  1495.                 yyval = CALL_0("object_type");
  1496.                 CHECK_EXCEPTION;
  1497.             ;
  1498.     break;}
  1499. case 135:
  1500. #line 688 "grammar.y"
  1501. {
  1502.                 yyval = CALL_1("struct_type_header", yyvsp[0]);
  1503.                 CHECK_EXCEPTION;
  1504.             ;
  1505.     break;}
  1506. case 136:
  1507. #line 693 "grammar.y"
  1508. {
  1509.                 yyval = CALL_2("struct_type_body", yyvsp[-3], yyvsp[-1]);
  1510.                 CHECK_EXCEPTION;
  1511.             ;
  1512.     break;}
  1513. case 137:
  1514. #line 700 "grammar.y"
  1515. {
  1516.                 yyval = CALL_2("list_insert", yyvsp[-1], yyvsp[0]);
  1517.                 CHECK_EXCEPTION;
  1518.             ;
  1519.     break;}
  1520. case 138:
  1521. #line 707 "grammar.y"
  1522. {
  1523.                 yyval = CALL_0("list_empty");
  1524.                 CHECK_EXCEPTION;
  1525.             ;
  1526.     break;}
  1527. case 139:
  1528. #line 713 "grammar.y"
  1529. {
  1530.                 yyval = CALL_2("list_insert", yyvsp[-1], yyvsp[0]);
  1531.                 CHECK_EXCEPTION;
  1532.             ;
  1533.     break;}
  1534. case 140:
  1535. #line 720 "grammar.y"
  1536. {
  1537.                 yyval = CALL_2("member", yyvsp[-2], yyvsp[-1]);
  1538.                 CHECK_EXCEPTION;
  1539.             ;
  1540.     break;}
  1541. case 141:
  1542. #line 728 "grammar.y"
  1543. {
  1544.                 yyval = CALL_2("union_type_header", yyvsp[-4], yyvsp[-1]);
  1545.                 CHECK_EXCEPTION;
  1546.             ;
  1547.     break;}
  1548. case 142:
  1549. #line 733 "grammar.y"
  1550. {
  1551.                 yyval = CALL_2("union_type_body", yyvsp[-3], yyvsp[-1]);
  1552.                 CHECK_EXCEPTION;
  1553.             ;
  1554.     break;}
  1555. case 147:
  1556. #line 748 "grammar.y"
  1557. {
  1558.                 yyval = CALL_1("switch_type_spec_scoped_name", yyvsp[0]);
  1559.                 CHECK_EXCEPTION;
  1560.             ;
  1561.     break;}
  1562. case 148:
  1563. #line 755 "grammar.y"
  1564. {
  1565.                 yyval = CALL_2("list_insert", yyvsp[-1], yyvsp[0]);
  1566.                 CHECK_EXCEPTION;
  1567.             ;
  1568.     break;}
  1569. case 149:
  1570. #line 762 "grammar.y"
  1571. {
  1572.                 yyval = CALL_0("list_empty");
  1573.                 CHECK_EXCEPTION;
  1574.             ;
  1575.     break;}
  1576. case 150:
  1577. #line 768 "grammar.y"
  1578. {
  1579.                 yyval = CALL_2("list_insert", yyvsp[-1], yyvsp[0]);
  1580.                 CHECK_EXCEPTION;
  1581.             ;
  1582.     break;}
  1583. case 151:
  1584. #line 775 "grammar.y"
  1585. {
  1586.                 yyval = CALL_2("case", yyvsp[-2], yyvsp[-1]);
  1587.                 CHECK_EXCEPTION;
  1588.             ;
  1589.     break;}
  1590. case 152:
  1591. #line 782 "grammar.y"
  1592. {
  1593.                 yyval = CALL_2("list_insert", yyvsp[-1], yyvsp[0]);
  1594.                 CHECK_EXCEPTION;
  1595.             ;
  1596.     break;}
  1597. case 153:
  1598. #line 789 "grammar.y"
  1599. {
  1600.                 yyval = CALL_0("list_empty");
  1601.                 CHECK_EXCEPTION;
  1602.             ;
  1603.     break;}
  1604. case 154:
  1605. #line 795 "grammar.y"
  1606. {
  1607.                 yyval = CALL_2("list_insert", yyvsp[-1], yyvsp[0]);
  1608.                 CHECK_EXCEPTION;
  1609.             ;
  1610.     break;}
  1611. case 155:
  1612. #line 802 "grammar.y"
  1613. {
  1614.                 yyval = yyvsp[-1];
  1615.             ;
  1616.     break;}
  1617. case 156:
  1618. #line 807 "grammar.y"
  1619. {
  1620.                 yyval = CALL_0("case_label_default");
  1621.                 CHECK_EXCEPTION;
  1622.             ;
  1623.     break;}
  1624. case 157:
  1625. #line 814 "grammar.y"
  1626. {
  1627.                 yyval = CALL_2("element_spec", yyvsp[-1], yyvsp[0]);
  1628.                 CHECK_EXCEPTION;
  1629.             ;
  1630.     break;}
  1631. case 158:
  1632. #line 821 "grammar.y"
  1633. {
  1634.                 yyval = CALL_1("enum_type_header", yyvsp[0]);
  1635.                 CHECK_EXCEPTION;
  1636.             ;
  1637.     break;}
  1638. case 159:
  1639. #line 826 "grammar.y"
  1640. {
  1641.                 yyval = CALL_2("enum_type_body", yyvsp[-3], yyvsp[-1]);
  1642.                 CHECK_EXCEPTION;
  1643.             ;
  1644.     break;}
  1645. case 160:
  1646. #line 833 "grammar.y"
  1647. {
  1648.                 yyval = CALL_2("list_insert", yyvsp[-1], yyvsp[0]);
  1649.                 CHECK_EXCEPTION;
  1650.             ;
  1651.     break;}
  1652. case 161:
  1653. #line 840 "grammar.y"
  1654. {
  1655.                 yyval = CALL_0("list_empty");
  1656.                 CHECK_EXCEPTION;
  1657.             ;
  1658.     break;}
  1659. case 162:
  1660. #line 846 "grammar.y"
  1661. {
  1662.                 yyval = CALL_2("list_insert", yyvsp[-1], yyvsp[0]);
  1663.                 CHECK_EXCEPTION;
  1664.             ;
  1665.     break;}
  1666. case 164:
  1667. #line 856 "grammar.y"
  1668. {
  1669.                 yyval = CALL_2("sequence_type", yyvsp[-3], yyvsp[-1]);
  1670.                 CHECK_EXCEPTION;
  1671.             ;
  1672.     break;}
  1673. case 165:
  1674. #line 862 "grammar.y"
  1675. {
  1676.                 yyval = CALL_1("sequence_type", yyvsp[-1]);
  1677.                 CHECK_EXCEPTION;
  1678.             ;
  1679.     break;}
  1680. case 166:
  1681. #line 869 "grammar.y"
  1682. {
  1683.                 yyval = CALL_1("string_type", yyvsp[-1]);
  1684.                 CHECK_EXCEPTION;
  1685.             ;
  1686.     break;}
  1687. case 167:
  1688. #line 875 "grammar.y"
  1689. {
  1690.                 yyval = CALL_0("string_type");
  1691.                 CHECK_EXCEPTION;
  1692.             ;
  1693.     break;}
  1694. case 168:
  1695. #line 882 "grammar.y"
  1696. {
  1697.                 yyval = CALL_1("wide_string_type", yyvsp[-1]);
  1698.                 CHECK_EXCEPTION;
  1699.             ;
  1700.     break;}
  1701. case 169:
  1702. #line 888 "grammar.y"
  1703. {
  1704.                 yyval = CALL_0("wide_string_type");
  1705.                 CHECK_EXCEPTION;
  1706.             ;
  1707.     break;}
  1708. case 170:
  1709. #line 895 "grammar.y"
  1710. {
  1711.                 yyval = CALL_2("array_declarator", yyvsp[-1], yyvsp[0]);
  1712.                 CHECK_EXCEPTION;
  1713.             ;
  1714.     break;}
  1715. case 171:
  1716. #line 902 "grammar.y"
  1717. {
  1718.                 yyval = CALL_2("list_insert", yyvsp[-1], yyvsp[0]);
  1719.                 CHECK_EXCEPTION;
  1720.             ;
  1721.     break;}
  1722. case 172:
  1723. #line 909 "grammar.y"
  1724. {
  1725.                 yyval = CALL_0("list_empty");
  1726.                 CHECK_EXCEPTION;
  1727.             ;
  1728.     break;}
  1729. case 173:
  1730. #line 915 "grammar.y"
  1731. {
  1732.                 yyval = CALL_2("list_insert", yyvsp[-1], yyvsp[0]);
  1733.                 CHECK_EXCEPTION;
  1734.             ;
  1735.     break;}
  1736. case 174:
  1737. #line 922 "grammar.y"
  1738. {
  1739.                 yyval = CALL_1("fixed_array_size", yyvsp[-1]);
  1740.                 CHECK_EXCEPTION;
  1741.             ;
  1742.     break;}
  1743. case 175:
  1744. #line 930 "grammar.y"
  1745. {
  1746.                 CALL_3("attr_dcl", yyvsp[-3], yyvsp[-1], yyvsp[0]);
  1747.                 CHECK_EXCEPTION;
  1748.             ;
  1749.     break;}
  1750. case 176:
  1751. #line 936 "grammar.y"
  1752. {
  1753.                 yyval = CALL_0("readonly_OPT_normal");
  1754.                 CHECK_EXCEPTION;
  1755.             ;
  1756.     break;}
  1757. case 177:
  1758. #line 942 "grammar.y"
  1759. {
  1760.                 yyval = CALL_0("readonly_OPT_readonly");
  1761.                 CHECK_EXCEPTION;
  1762.             ;
  1763.     break;}
  1764. case 178:
  1765. #line 949 "grammar.y"
  1766. {
  1767.                   yyval = CALL_2("list_insert", yyvsp[-1], yyvsp[0]);
  1768.                   CHECK_EXCEPTION;
  1769.               ;
  1770.     break;}
  1771. case 179:
  1772. #line 956 "grammar.y"
  1773. {
  1774.                   yyval = CALL_0("list_empty");
  1775.                   CHECK_EXCEPTION;
  1776.               ;
  1777.     break;}
  1778. case 180:
  1779. #line 962 "grammar.y"
  1780. {
  1781.                   yyval = CALL_2("list_insert",yyvsp[-2], yyvsp[-1]);
  1782.                   CHECK_EXCEPTION;
  1783.               ;
  1784.     break;}
  1785. case 181:
  1786. #line 969 "grammar.y"
  1787. {
  1788.                 yyval = CALL_1("except_dcl_header", yyvsp[0]);
  1789.                 CHECK_EXCEPTION;
  1790.             ;
  1791.     break;}
  1792. case 182:
  1793. #line 974 "grammar.y"
  1794. {
  1795.                 CALL_2("except_dcl_body", yyvsp[-3], yyvsp[-1]);
  1796.                 CHECK_EXCEPTION;
  1797.             ;
  1798.     break;}
  1799. case 183:
  1800. #line 981 "grammar.y"
  1801. {
  1802.                 yyval = CALL_3("op_dcl_header", yyvsp[-2], yyvsp[-1], yyvsp[0]);
  1803.                 CHECK_EXCEPTION;
  1804.             ;
  1805.     break;}
  1806. case 184:
  1807. #line 986 "grammar.y"
  1808. {
  1809.                 CALL_4("op_dcl_body", yyvsp[-3], yyvsp[-2], yyvsp[-1], yyvsp[0]);
  1810.                 CHECK_EXCEPTION;
  1811.             ;
  1812.     break;}
  1813. case 185:
  1814. #line 993 "grammar.y"
  1815. {
  1816.                 yyval = CALL_0("op_attribute_OPT_empty");
  1817.                 CHECK_EXCEPTION;
  1818.             ;
  1819.     break;}
  1820. case 186:
  1821. #line 999 "grammar.y"
  1822. {
  1823.                 yyval = CALL_0("op_attribute_OPT_oneway");
  1824.                 CHECK_EXCEPTION;
  1825.             ;
  1826.     break;}
  1827. case 188:
  1828. #line 1008 "grammar.y"
  1829. {
  1830.                 yyval = CALL_0("op_type_spec_void");
  1831.                 CHECK_EXCEPTION;
  1832.             ;
  1833.     break;}
  1834. case 189:
  1835. #line 1015 "grammar.y"
  1836. {
  1837.                 yyval = yyvsp[-1];
  1838.             ;
  1839.     break;}
  1840. case 190:
  1841. #line 1020 "grammar.y"
  1842. {
  1843.                 yyval = CALL_0("parameter_dcls_empty");
  1844.                 CHECK_EXCEPTION;
  1845.             ;
  1846.     break;}
  1847. case 191:
  1848. #line 1027 "grammar.y"
  1849. {
  1850.                 yyval = CALL_2("list_insert", yyvsp[-1], yyvsp[0]);
  1851.                 CHECK_EXCEPTION;
  1852.             ;
  1853.     break;}
  1854. case 192:
  1855. #line 1033 "grammar.y"
  1856. {
  1857.                 yyval = CALL_0("list_empty");
  1858.                 CHECK_EXCEPTION;
  1859.             ;
  1860.     break;}
  1861. case 193:
  1862. #line 1039 "grammar.y"
  1863. {
  1864.                 yyval = CALL_2("list_insert", yyvsp[-1], yyvsp[0]);
  1865.                 CHECK_EXCEPTION;
  1866.             ;
  1867.     break;}
  1868. case 194:
  1869. #line 1046 "grammar.y"
  1870. {
  1871.                 yyval = CALL_3("param_dcl", yyvsp[-2], yyvsp[-1], yyvsp[0]);
  1872.                 CHECK_EXCEPTION;
  1873.             ;
  1874.     break;}
  1875. case 195:
  1876. #line 1053 "grammar.y"
  1877. {
  1878.                 yyval = CALL_0("param_attribute_in");
  1879.                 CHECK_EXCEPTION;
  1880.             ;
  1881.     break;}
  1882. case 196:
  1883. #line 1059 "grammar.y"
  1884. {
  1885.                 yyval = CALL_0("param_attribute_out");
  1886.                 CHECK_EXCEPTION;
  1887.             ;
  1888.     break;}
  1889. case 197:
  1890. #line 1065 "grammar.y"
  1891. {
  1892.                 yyval = CALL_0("param_attribute_inout");
  1893.                 CHECK_EXCEPTION;
  1894.             ;
  1895.     break;}
  1896. case 198:
  1897. #line 1072 "grammar.y"
  1898. {
  1899.                 yyval = CALL_0("raises_expr_OPT_empty");
  1900.                 CHECK_EXCEPTION;
  1901.             ;
  1902.     break;}
  1903. case 200:
  1904. #line 1081 "grammar.y"
  1905. {
  1906.                 yyval = CALL_1("raises_expr", yyvsp[-1]);
  1907.                 CHECK_EXCEPTION;
  1908.             ;
  1909.     break;}
  1910. case 201:
  1911. #line 1088 "grammar.y"
  1912. {
  1913.                 yyval = CALL_0("context_expr_OPT_empty");
  1914.                 CHECK_EXCEPTION;
  1915.             ;
  1916.     break;}
  1917. case 203:
  1918. #line 1097 "grammar.y"
  1919. {
  1920.                 yyval = CALL_1("context_expr", yyvsp[-1]);
  1921.                 CHECK_EXCEPTION;
  1922.                         ;
  1923.     break;}
  1924. case 204:
  1925. #line 1104 "grammar.y"
  1926. {
  1927.                 yyval = CALL_2("list_insert", yyvsp[-1], yyvsp[0]);
  1928.                 CHECK_EXCEPTION;
  1929.             ;
  1930.     break;}
  1931. case 205:
  1932. #line 1110 "grammar.y"
  1933. {
  1934.                 yyval = CALL_0("list_empty");
  1935.                 CHECK_EXCEPTION;
  1936.             ;
  1937.     break;}
  1938. case 206:
  1939. #line 1116 "grammar.y"
  1940. {
  1941.                 yyval = CALL_2("list_insert", yyvsp[-1], yyvsp[0]);
  1942.                 CHECK_EXCEPTION;
  1943.                 ;
  1944.     break;}
  1945. case 211:
  1946. #line 1131 "grammar.y"
  1947. {
  1948.                 yyval = CALL_1("idl_type_scoped_name", yyvsp[0]);
  1949.                 CHECK_EXCEPTION;
  1950.             ;
  1951.     break;}
  1952. case 212:
  1953. #line 1138 "grammar.y"
  1954. {
  1955.                 yyval = CALL_2("fixed_pt_type", yyvsp[-3], yyvsp[-1]);
  1956.                 CHECK_EXCEPTION;
  1957.             ;
  1958.     break;}
  1959. case 213:
  1960. #line 1145 "grammar.y"
  1961. {
  1962.                 yyval = CALL_0("fixed_pt_const_type");
  1963.                 CHECK_EXCEPTION;
  1964.             ;
  1965.     break;}
  1966. }
  1967.    /* the action file gets copied in in place of this dollarsign */
  1968. #line 498 "/opt/local/share/bison.simple"
  1969.  
  1970.   yyvsp -= yylen;
  1971.   yyssp -= yylen;
  1972. #ifdef YYLSP_NEEDED
  1973.   yylsp -= yylen;
  1974. #endif
  1975.  
  1976. #if YYDEBUG != 0
  1977.   if (yydebug)
  1978.     {
  1979.       short *ssp1 = yyss - 1;
  1980.       fprintf (stderr, "state stack now");
  1981.       while (ssp1 != yyssp)
  1982.     fprintf (stderr, " %d", *++ssp1);
  1983.       fprintf (stderr, "\n");
  1984.     }
  1985. #endif
  1986.  
  1987.   *++yyvsp = yyval;
  1988.  
  1989. #ifdef YYLSP_NEEDED
  1990.   yylsp++;
  1991.   if (yylen == 0)
  1992.     {
  1993.       yylsp->first_line = yylloc.first_line;
  1994.       yylsp->first_column = yylloc.first_column;
  1995.       yylsp->last_line = (yylsp-1)->last_line;
  1996.       yylsp->last_column = (yylsp-1)->last_column;
  1997.       yylsp->text = 0;
  1998.     }
  1999.   else
  2000.     {
  2001.       yylsp->last_line = (yylsp+yylen-1)->last_line;
  2002.       yylsp->last_column = (yylsp+yylen-1)->last_column;
  2003.     }
  2004. #endif
  2005.  
  2006.   /* Now "shift" the result of the reduction.
  2007.      Determine what state that goes to,
  2008.      based on the state we popped back to
  2009.      and the rule number reduced by.  */
  2010.  
  2011.   yyn = yyr1[yyn];
  2012.  
  2013.   yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  2014.   if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  2015.     yystate = yytable[yystate];
  2016.   else
  2017.     yystate = yydefgoto[yyn - YYNTBASE];
  2018.  
  2019.   goto yynewstate;
  2020.  
  2021. yyerrlab:   /* here on detecting error */
  2022.  
  2023.   if (! yyerrstatus)
  2024.     /* If not already recovering from an error, report this error.  */
  2025.     {
  2026.       ++yynerrs;
  2027.  
  2028. #ifdef YYERROR_VERBOSE
  2029.       yyn = yypact[yystate];
  2030.  
  2031.       if (yyn > YYFLAG && yyn < YYLAST)
  2032.     {
  2033.       int size = 0;
  2034.       char *msg;
  2035.       int x, count;
  2036.  
  2037.       count = 0;
  2038.       /* Start X at -yyn if nec to avoid negative indexes in yycheck.  */
  2039.       for (x = (yyn < 0 ? -yyn : 0);
  2040.            x < (sizeof(yytname) / sizeof(char *)); x++)
  2041.         if (yycheck[x + yyn] == x)
  2042.           size += strlen(yytname[x]) + 15, count++;
  2043.       msg = (char *) malloc(size + 15);
  2044.       if (msg != 0)
  2045.         {
  2046.           strcpy(msg, "parse error");
  2047.  
  2048.           if (count < 5)
  2049.         {
  2050.           count = 0;
  2051.           for (x = (yyn < 0 ? -yyn : 0);
  2052.                x < (sizeof(yytname) / sizeof(char *)); x++)
  2053.             if (yycheck[x + yyn] == x)
  2054.               {
  2055.             strcat(msg, count == 0 ? ", expecting `" : " or `");
  2056.             strcat(msg, yytname[x]);
  2057.             strcat(msg, "'");
  2058.             count++;
  2059.               }
  2060.         }
  2061.           yyerror(msg);
  2062.           free(msg);
  2063.         }
  2064.       else
  2065.         yyerror ("parse error; also virtual memory exceeded");
  2066.     }
  2067.       else
  2068. #endif /* YYERROR_VERBOSE */
  2069.     yyerror("parse error");
  2070.     }
  2071.  
  2072.   goto yyerrlab1;
  2073. yyerrlab1:   /* here on error raised explicitly by an action */
  2074.  
  2075.   if (yyerrstatus == 3)
  2076.     {
  2077.       /* if just tried and failed to reuse lookahead token after an error, discard it.  */
  2078.  
  2079.       /* return failure if at end of input */
  2080.       if (yychar == YYEOF)
  2081.     YYABORT;
  2082.  
  2083. #if YYDEBUG != 0
  2084.       if (yydebug)
  2085.     fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
  2086. #endif
  2087.  
  2088.       yychar = YYEMPTY;
  2089.     }
  2090.  
  2091.   /* Else will try to reuse lookahead token
  2092.      after shifting the error token.  */
  2093.  
  2094.   yyerrstatus = 3;        /* Each real token shifted decrements this */
  2095.  
  2096.   goto yyerrhandle;
  2097.  
  2098. yyerrdefault:  /* current state does not do anything special for the error token. */
  2099.  
  2100. #if 0
  2101.   /* This is wrong; only states that explicitly want error tokens
  2102.      should shift them.  */
  2103.   yyn = yydefact[yystate];  /* If its default is to accept any token, ok.  Otherwise pop it.*/
  2104.   if (yyn) goto yydefault;
  2105. #endif
  2106.  
  2107. yyerrpop:   /* pop the current state because it cannot handle the error token */
  2108.  
  2109.   if (yyssp == yyss) YYABORT;
  2110.   yyvsp--;
  2111.   yystate = *--yyssp;
  2112. #ifdef YYLSP_NEEDED
  2113.   yylsp--;
  2114. #endif
  2115.  
  2116. #if YYDEBUG != 0
  2117.   if (yydebug)
  2118.     {
  2119.       short *ssp1 = yyss - 1;
  2120.       fprintf (stderr, "Error: state stack now");
  2121.       while (ssp1 != yyssp)
  2122.     fprintf (stderr, " %d", *++ssp1);
  2123.       fprintf (stderr, "\n");
  2124.     }
  2125. #endif
  2126.  
  2127. yyerrhandle:
  2128.  
  2129.   yyn = yypact[yystate];
  2130.   if (yyn == YYFLAG)
  2131.     goto yyerrdefault;
  2132.  
  2133.   yyn += YYTERROR;
  2134.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
  2135.     goto yyerrdefault;
  2136.  
  2137.   yyn = yytable[yyn];
  2138.   if (yyn < 0)
  2139.     {
  2140.       if (yyn == YYFLAG)
  2141.     goto yyerrpop;
  2142.       yyn = -yyn;
  2143.       goto yyreduce;
  2144.     }
  2145.   else if (yyn == 0)
  2146.     goto yyerrpop;
  2147.  
  2148.   if (yyn == YYFINAL)
  2149.     YYACCEPT;
  2150.  
  2151. #if YYDEBUG != 0
  2152.   if (yydebug)
  2153.     fprintf(stderr, "Shifting error token, ");
  2154. #endif
  2155.  
  2156.   *++yyvsp = yylval;
  2157. #ifdef YYLSP_NEEDED
  2158.   *++yylsp = yylloc;
  2159. #endif
  2160.  
  2161.   yystate = yyn;
  2162.   goto yynewstate;
  2163. }
  2164. #line 1151 "grammar.y"
  2165.  
  2166.  
  2167. void
  2168. yyerror(char* s)
  2169. {
  2170.     CALL_1("yyerror", PyString_FromString(s));
  2171. }
  2172.  
  2173. void
  2174. yywarning(char* s)
  2175. {
  2176.     CALL_1("yywarning", PyString_FromString(s));
  2177. }
  2178.  
  2179. /***************************************************************/
  2180. /* end of grammar.y */
  2181.