[BACK]Return to simple.tab.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / k097

Diff for /OpenXM/src/k097/Attic/simple.tab.c between version 1.1 and 1.2

version 1.1, 1999/10/08 02:12:15 version 1.2, 2000/01/22 01:38:29
Line 1 
Line 1 
   
 /*  A Bison parser, made from simple.y  /*  A Bison parser, made from simple.y
  by  GNU Bison version 1.25      by GNU Bison version 1.28  */
   */  
   
 #define YYBISON 1  /* Identify Bison output.  */  #define YYBISON 1  /* Identify Bison output.  */
   
Line 12 
Line 11 
 #define yychar KCchar  #define yychar KCchar
 #define yydebug KCdebug  #define yydebug KCdebug
 #define yynerrs KCnerrs  #define yynerrs KCnerrs
 #define ID      258  #define ID      257
 #define QUOTE   259  #define QUOTE   258
 #define SINGLEQUOTE     260  #define SINGLEQUOTE     259
 #define NUMBER  261  #define NUMBER  260
 #define CLASS   262  #define CLASS   261
 #define SUPER   263  #define SUPER   262
 #define OPERATOR        264  #define OPERATOR        263
 #define FINAL   265  #define FINAL   264
 #define EXTENDS 266  #define EXTENDS 265
 #define INCETANCEVARIABLE       267  #define INCETANCEVARIABLE       266
 #define THIS    268  #define THIS    267
 #define NEW     269  #define NEW     268
 #define SIZEOFTHISCLASS 270  #define SIZEOFTHISCLASS 269
 #define STARTOFTHISCLASS        271  #define STARTOFTHISCLASS        270
 #define MODULE  272  #define MODULE  271
 #define PRINT   273  #define PRINT   272
 #define LOCAL   274  #define LOCAL   273
 #define DEF     275  #define DEF     274
 #define SM1     276  #define SM1     275
 #define LOAD    277  #define LOAD    276
 #define TEST    278  #define TEST    277
 #define SPECIAL 279  #define SPECIAL 278
 #define AUTO    280  #define AUTO    279
 #define BREAK   281  #define BREAK   280
 #define CASE    282  #define CASE    281
 #define CHAR    283  #define CHAR    282
 #define CONST   284  #define CONST   283
 #define CONTINUE        285  #define CONTINUE        284
 #define DEFAULT 286  #define DEFAULT 285
 #define DO      287  #define DO      286
 #define DOUBLE  288  #define DOUBLE  287
 #define ELSE    289  #define ELSE    288
 #define ENUM    290  #define ENUM    289
 #define EXTERN  291  #define EXTERN  290
 #define FLOAT   292  #define FLOAT   291
 #define FOR     293  #define FOR     292
 #define GOTO    294  #define GOTO    293
 #define IF      295  #define IF      294
 #define INT     296  #define INT     295
 #define LONG    297  #define LONG    296
 #define REGISTER        298  #define REGISTER        297
 #define RETURN  299  #define RETURN  298
 #define SHORT   300  #define SHORT   299
 #define SIGNED  301  #define SIGNED  300
 #define SIZEOF  302  #define SIZEOF  301
 #define STATIC  303  #define STATIC  302
 #define STRUCT  304  #define STRUCT  303
 #define SWITCH  305  #define SWITCH  304
 #define TYPEDEF 306  #define TYPEDEF 305
 #define UNION   307  #define UNION   306
 #define UNSIGNED        308  #define UNSIGNED        307
 #define VOLATILE        309  #define VOLATILE        308
 #define VOID    310  #define VOID    309
 #define WHILE   311  #define WHILE   310
 #define PSFOR   312  #define PSFOR   311
 #define PROMPT  313  #define PROMPT  312
 #define PUT     314  #define PUT     313
 #define MULTPUT 315  #define MULTPUT 314
 #define NEGATEPUT       316  #define NEGATEPUT       315
 #define RESIDUEPUT      317  #define RESIDUEPUT      316
 #define OR      318  #define OR      317
 #define AND     319  #define AND     318
 #define EQUAL   320  #define EQUAL   319
 #define NOTEQUAL        321  #define NOTEQUAL        320
 #define LESSEQUAL       322  #define LESSEQUAL       321
 #define GREATEREQUAL    323  #define GREATEREQUAL    322
 #define LEFTSHIFT       324  #define LEFTSHIFT       323
 #define RIGHTSHIFT      325  #define RIGHTSHIFT      324
 #define UNARYMINUS      326  #define UNARYMINUS      325
 #define INCREMENT       327  #define INCREMENT       326
 #define DECREMENT       328  #define DECREMENT       327
 #define MEMBER  329  #define MEMBER  328
   
 #line 4 "simple.y"  #line 4 "simple.y"
   
Line 106 
Line 105 
 #define YYFLAG          -32768  #define YYFLAG          -32768
 #define YYNTBASE        98  #define YYNTBASE        98
   
 #define YYTRANSLATE(x) ((unsigned)(x) <= 329 ? yytranslate[x] : 159)  #define YYTRANSLATE(x) ((unsigned)(x) <= 328 ? yytranslate[x] : 159)
   
 static const char yytranslate[] = {     0,  static const char yytranslate[] = {     0,
      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
Line 134  static const char yytranslate[] = {     0,
Line 133  static const char yytranslate[] = {     0,
      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
      2,     2,     2,     2,     2,     1,     2,     3,     4,     5,       2,     2,     2,     2,     2,     1,     3,     4,     5,     6,
      6,     7,     8,     9,    10,    11,    12,    13,    14,    15,       7,     8,     9,    10,    11,    12,    13,    14,    15,    16,
     16,    17,    18,    19,    20,    21,    22,    23,    24,    25,      17,    18,    19,    20,    21,    22,    23,    24,    25,    26,
     26,    27,    28,    29,    30,    31,    32,    33,    34,    35,      27,    28,    29,    30,    31,    32,    33,    34,    35,    36,
     36,    37,    38,    39,    40,    41,    42,    43,    44,    45,      37,    38,    39,    40,    41,    42,    43,    44,    45,    46,
     46,    47,    48,    49,    50,    51,    52,    53,    54,    55,      47,    48,    49,    50,    51,    52,    53,    54,    55,    56,
     56,    57,    58,    60,    61,    62,    63,    64,    65,    68,      57,    58,    60,    61,    62,    63,    64,    65,    68,    69,
     69,    72,    73,    74,    75,    81,    83,    84,    88      72,    73,    74,    75,    81,    83,    84,    88
 };  };
   
 #if YYDEBUG != 0  #if YYDEBUG != 0
Line 709  static const short yycheck[] = {     0,
Line 708  static const short yycheck[] = {     0,
     86,    87,    88      86,    87,    88
 };  };
 /* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */  /* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
 #line 3 "/usr/lib/bison.simple"  #line 3 "/usr/share/misc/bison.simple"
   /* This file comes from bison-1.28.  */
   
 /* Skeleton output parser for bison,  /* Skeleton output parser for bison,
    Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.     Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
Line 726  static const short yycheck[] = {     0,
Line 726  static const short yycheck[] = {     0,
   
    You should have received a copy of the GNU General Public License     You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software     along with this program; if not, write to the Free Software
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */     Foundation, Inc., 59 Temple Place - Suite 330,
      Boston, MA 02111-1307, USA.  */
   
 /* As a special exception, when this file is copied by Bison into a  /* As a special exception, when this file is copied by Bison into a
    Bison output file, you may use that output file without restriction.     Bison output file, you may use that output file without restriction.
    This special exception was added by the Free Software Foundation     This special exception was added by the Free Software Foundation
    in version 1.24 of Bison.  */     in version 1.24 of Bison.  */
   
 #ifndef alloca  /* This is the parser code that is written into each bison parser
     when the %semantic_parser declaration is not specified in the grammar.
     It was written by Richard Stallman by simplifying the hairy parser
     used when %semantic_parser is specified.  */
   
   #ifndef YYSTACK_USE_ALLOCA
   #ifdef alloca
   #define YYSTACK_USE_ALLOCA
   #else /* alloca not defined */
 #ifdef __GNUC__  #ifdef __GNUC__
   #define YYSTACK_USE_ALLOCA
 #define alloca __builtin_alloca  #define alloca __builtin_alloca
 #else /* not GNU C.  */  #else /* not GNU C.  */
 #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)  #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386))
   #define YYSTACK_USE_ALLOCA
 #include <alloca.h>  #include <alloca.h>
 #else /* not sparc */  #else /* not sparc */
 #if defined (MSDOS) && !defined (__TURBOC__)  /* We think this test detects Watcom and Microsoft C.  */
   /* This used to test MSDOS, but that is a bad idea
      since that symbol is in the user namespace.  */
   #if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__)
   #if 0 /* No need for malloc.h, which pollutes the namespace;
            instead, just don't use alloca.  */
 #include <malloc.h>  #include <malloc.h>
   #endif
 #else /* not MSDOS, or __TURBOC__ */  #else /* not MSDOS, or __TURBOC__ */
 #if defined(_AIX)  #if defined(_AIX)
 #include <malloc.h>  /* I don't know what this was needed for, but it pollutes the namespace.
      So I turned it off.   rms, 2 May 1997.  */
   /* #include <malloc.h>  */
  #pragma alloca   #pragma alloca
 #else /* not MSDOS, __TURBOC__, or _AIX */  #define YYSTACK_USE_ALLOCA
 #ifdef __hpux  #else /* not MSDOS, or __TURBOC__, or _AIX */
 #ifdef __cplusplus  #if 0
 extern "C" {  #ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up,
 void *alloca (unsigned int);                   and on HPUX 10.  Eventually we can turn this on.  */
 };  #define YYSTACK_USE_ALLOCA
 #else /* not __cplusplus */  #define alloca __builtin_alloca
 void *alloca ();  
 #endif /* not __cplusplus */  
 #endif /* __hpux */  #endif /* __hpux */
   #endif
 #endif /* not _AIX */  #endif /* not _AIX */
 #endif /* not MSDOS, or __TURBOC__ */  #endif /* not MSDOS, or __TURBOC__ */
 #endif /* not sparc.  */  #endif /* not sparc */
 #endif /* not GNU C.  */  #endif /* not GNU C */
 #endif /* alloca not defined.  */  #endif /* alloca not defined */
   #endif /* YYSTACK_USE_ALLOCA not defined */
   
 /* This is the parser code that is written into each bison parser  #ifdef YYSTACK_USE_ALLOCA
   when the %semantic_parser declaration is not specified in the grammar.  #define YYSTACK_ALLOC alloca
   It was written by Richard Stallman by simplifying the hairy parser  #else
   used when %semantic_parser is specified.  */  #define YYSTACK_ALLOC malloc
   #endif
   
 /* Note: there must be only one dollar sign in this file.  /* Note: there must be only one dollar sign in this file.
    It is replaced by the list of actions, each action     It is replaced by the list of actions, each action
Line 775  void *alloca ();
Line 795  void *alloca ();
 #define yyclearin       (yychar = YYEMPTY)  #define yyclearin       (yychar = YYEMPTY)
 #define YYEMPTY         -2  #define YYEMPTY         -2
 #define YYEOF           0  #define YYEOF           0
 #define YYACCEPT        return(0)  #define YYACCEPT        goto yyacceptlab
 #define YYABORT         return(1)  #define YYABORT         goto yyabortlab
 #define YYERROR         goto yyerrlab1  #define YYERROR         goto yyerrlab1
 /* Like YYERROR except do call yyerror.  /* Like YYERROR except do call yyerror.
    This remains here temporarily to ease the     This remains here temporarily to ease the
Line 857  int yydebug;   /*  nonzero means print parse trace */
Line 877  int yydebug;   /*  nonzero means print parse trace */
 #ifndef YYMAXDEPTH  #ifndef YYMAXDEPTH
 #define YYMAXDEPTH 10000  #define YYMAXDEPTH 10000
 #endif  #endif
   
 /* Prevent warning if -Wstrict-prototypes.  */  
 #ifdef __GNUC__  
 int yyparse (void);  
 #endif  
   
   /* Define __yy_memcpy.  Note that the size argument
      should be passed with type unsigned int, because that is what the non-GCC
      definitions require.  With GCC, __builtin_memcpy takes an arg
      of type size_t, but it can handle unsigned int.  */
   
 #if __GNUC__ > 1                /* GNU C and GNU C++ define this.  */  #if __GNUC__ > 1                /* GNU C and GNU C++ define this.  */
 #define __yy_memcpy(TO,FROM,COUNT)      __builtin_memcpy(TO,FROM,COUNT)  #define __yy_memcpy(TO,FROM,COUNT)      __builtin_memcpy(TO,FROM,COUNT)
 #else                           /* not GNU C or C++ */  #else                           /* not GNU C or C++ */
Line 874  static void
Line 894  static void
 __yy_memcpy (to, from, count)  __yy_memcpy (to, from, count)
      char *to;       char *to;
      char *from;       char *from;
      int count;       unsigned int count;
 {  {
   register char *f = from;    register char *f = from;
   register char *t = to;    register char *t = to;
Line 889  __yy_memcpy (to, from, count)
Line 909  __yy_memcpy (to, from, count)
 /* This is the most reliable way to avoid incompatibilities  /* This is the most reliable way to avoid incompatibilities
    in available built-in functions on various systems.  */     in available built-in functions on various systems.  */
 static void  static void
 __yy_memcpy (char *to, char *from, int count)  __yy_memcpy (char *to, char *from, unsigned int count)
 {  {
   register char *f = from;  
   register char *t = to;    register char *t = to;
     register char *f = from;
   register int i = count;    register int i = count;
   
   while (i-- > 0)    while (i-- > 0)
Line 902  __yy_memcpy (char *to, char *from, int count)
Line 922  __yy_memcpy (char *to, char *from, int count)
 #endif  #endif
 #endif  #endif
   
 #line 196 "/usr/lib/bison.simple"  #line 217 "/usr/share/misc/bison.simple"
   
 /* The user can define YYPARSE_PARAM as the name of an argument to be passed  /* The user can define YYPARSE_PARAM as the name of an argument to be passed
    into yyparse.  The argument should have type void *.     into yyparse.  The argument should have type void *.
Line 923  __yy_memcpy (char *to, char *from, int count)
Line 943  __yy_memcpy (char *to, char *from, int count)
 #define YYPARSE_PARAM_DECL  #define YYPARSE_PARAM_DECL
 #endif /* not YYPARSE_PARAM */  #endif /* not YYPARSE_PARAM */
   
   /* Prevent warning if -Wstrict-prototypes.  */
   #ifdef __GNUC__
   #ifdef YYPARSE_PARAM
   int yyparse (void *);
   #else
   int yyparse (void);
   #endif
   #endif
   
 int  int
 yyparse(YYPARSE_PARAM_ARG)  yyparse(YYPARSE_PARAM_ARG)
      YYPARSE_PARAM_DECL       YYPARSE_PARAM_DECL
Line 951  yyparse(YYPARSE_PARAM_ARG)
Line 980  yyparse(YYPARSE_PARAM_ARG)
 #endif  #endif
   
   int yystacksize = YYINITDEPTH;    int yystacksize = YYINITDEPTH;
     int yyfree_stacks = 0;
   
 #ifdef YYPURE  #ifdef YYPURE
   int yychar;    int yychar;
Line 1035  yynewstate:
Line 1065  yynewstate:
       if (yystacksize >= YYMAXDEPTH)        if (yystacksize >= YYMAXDEPTH)
         {          {
           yyerror("parser stack overflow");            yyerror("parser stack overflow");
             if (yyfree_stacks)
               {
                 free (yyss);
                 free (yyvs);
   #ifdef YYLSP_NEEDED
                 free (yyls);
   #endif
               }
           return 2;            return 2;
         }          }
       yystacksize *= 2;        yystacksize *= 2;
       if (yystacksize > YYMAXDEPTH)        if (yystacksize > YYMAXDEPTH)
         yystacksize = YYMAXDEPTH;          yystacksize = YYMAXDEPTH;
       yyss = (short *) alloca (yystacksize * sizeof (*yyssp));  #ifndef YYSTACK_USE_ALLOCA
       __yy_memcpy ((char *)yyss, (char *)yyss1, size * sizeof (*yyssp));        yyfree_stacks = 1;
       yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp));  #endif
       __yy_memcpy ((char *)yyvs, (char *)yyvs1, size * sizeof (*yyvsp));        yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp));
         __yy_memcpy ((char *)yyss, (char *)yyss1,
                      size * (unsigned int) sizeof (*yyssp));
         yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp));
         __yy_memcpy ((char *)yyvs, (char *)yyvs1,
                      size * (unsigned int) sizeof (*yyvsp));
 #ifdef YYLSP_NEEDED  #ifdef YYLSP_NEEDED
       yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp));        yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp));
       __yy_memcpy ((char *)yyls, (char *)yyls1, size * sizeof (*yylsp));        __yy_memcpy ((char *)yyls, (char *)yyls1,
                      size * (unsigned int) sizeof (*yylsp));
 #endif  #endif
 #endif /* no yyoverflow */  #endif /* no yyoverflow */
   
Line 1768  case 163:
Line 1812  case 163:
     break;}      break;}
 }  }
    /* the action file gets copied in in place of this dollarsign */     /* the action file gets copied in in place of this dollarsign */
 #line 498 "/usr/lib/bison.simple"  #line 543 "/usr/share/misc/bison.simple"
   
   yyvsp -= yylen;    yyvsp -= yylen;
   yyssp -= yylen;    yyssp -= yylen;
Line 1963  yyerrhandle:
Line 2007  yyerrhandle:
   
   yystate = yyn;    yystate = yyn;
   goto yynewstate;    goto yynewstate;
   
    yyacceptlab:
     /* YYACCEPT comes here.  */
     if (yyfree_stacks)
       {
         free (yyss);
         free (yyvs);
   #ifdef YYLSP_NEEDED
         free (yyls);
   #endif
       }
     return 0;
   
    yyabortlab:
     /* YYABORT comes here.  */
     if (yyfree_stacks)
       {
         free (yyss);
         free (yyvs);
   #ifdef YYLSP_NEEDED
         free (yyls);
   #endif
       }
     return 1;
 }  }
 #line 547 "simple.y"  #line 547 "simple.y"

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>