Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/packages/mg-1.3d/src/text/bool_parser.c

    r13 r26  
    11#ifndef lint
    2 static char yysccsid[] = "@(#)yaccpar   1.8 (Berkeley) 01/20/90";
     2static char yysccsid[] = "@(#)yaccpar   1.9 (Berkeley) 02/21/93";
    33#endif
    44#define YYBYACC 1
     5#define YYMAJOR 1
     6#define YYMINOR 9
     7#define yyclearin (yychar=(-1))
     8#define yyerrok (yyerrflag=0)
     9#define YYRECOVERING (yyerrflag!=0)
     10#define YYPREFIX "yy"
    511#line 25 "bool_parser.y"
    612 
     
    4652  bool_tree_node *node;
    4753} YYSTYPE;
    48 #line 49 "y.tab.c"
     54#line 55 "y.tab.c"
    4955#define TERM 257
    5056#define YYERRCODE 256
     
    158164};
    159165#endif
    160 #define yyclearin (yychar=(-1))
    161 #define yyerrok (yyerrflag=0)
    162166#ifdef YYSTACKSIZE
    163 #ifndef YYMAXDEPTH
     167#undef YYMAXDEPTH
    164168#define YYMAXDEPTH YYSTACKSIZE
    165 #endif
    166169#else
    167170#ifdef YYMAXDEPTH
     
    401404 
    402405
    403 #line 404 "y.tab.c"
     406#line 407 "y.tab.c"
    404407#define YYABORT goto yyabort
     408#define YYREJECT goto yyabort
    405409#define YYACCEPT goto yyaccept
    406410#define YYERROR goto yyerrlab
     
    440444            if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
    441445            if (!yys) yys = "illegal-symbol";
    442             printf("yydebug: state %d, reading %d (%s)\n", yystate,
    443                     yychar, yys);
     446            printf("%sdebug: state %d, reading %d (%s)\n",
     447                    YYPREFIX, yystate, yychar, yys);
    444448        }
    445449#endif
     
    450454#if YYDEBUG
    451455        if (yydebug)
    452             printf("yydebug: state %d, shifting to state %d\n",
    453                     yystate, yytable[yyn]);
     456            printf("%sdebug: state %d, shifting to state %d\n",
     457                    YYPREFIX, yystate, yytable[yyn]);
    454458#endif
    455459        if (yyssp >= yyss + yystacksize - 1)
     
    491495#if YYDEBUG
    492496                if (yydebug)
    493                     printf("yydebug: state %d, error recovery shifting\
    494  to state %d\n", *yyssp, yytable[yyn]);
     497                    printf("%sdebug: state %d, error recovery shifting\
     498 to state %d\n", YYPREFIX, *yyssp, yytable[yyn]);
    495499#endif
    496500                if (yyssp >= yyss + yystacksize - 1)
     
    506510#if YYDEBUG
    507511                if (yydebug)
    508                     printf("yydebug: error recovery discarding state %d\n",
    509                             *yyssp);
     512                    printf("%sdebug: error recovery discarding state %d\n",
     513                            YYPREFIX, *yyssp);
    510514#endif
    511515                if (yyssp <= yyss) goto yyabort;
     
    524528            if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
    525529            if (!yys) yys = "illegal-symbol";
    526             printf("yydebug: state %d, error recovery discards token %d (%s)\n",
    527                     yystate, yychar, yys);
     530            printf("%sdebug: state %d, error recovery discards token %d (%s)\n",
     531                    YYPREFIX, yystate, yychar, yys);
    528532        }
    529533#endif
     
    534538#if YYDEBUG
    535539    if (yydebug)
    536         printf("yydebug: state %d, reducing by rule %d (%s)\n",
    537                 yystate, yyn, yyrule[yyn]);
     540        printf("%sdebug: state %d, reducing by rule %d (%s)\n",
     541                YYPREFIX, yystate, yyn, yyrule[yyn]);
    538542#endif
    539543    yym = yylen[yyn];
     
    577581{ yyval.node = CreateBoolTreeNode(N_or, yyvsp[-2].node, yyvsp[0].node); }
    578582break;
    579 #line 580 "y.tab.c"
     583#line 584 "y.tab.c"
    580584    }
    581585    yyssp -= yym;
     
    587591#if YYDEBUG
    588592        if (yydebug)
    589             printf("yydebug: after reduction, shifting from state 0 to\
    590  state %d\n", YYFINAL);
     593            printf("%sdebug: after reduction, shifting from state 0 to\
     594 state %d\n", YYPREFIX, YYFINAL);
    591595#endif
    592596        yystate = YYFINAL;
     
    602606                if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
    603607                if (!yys) yys = "illegal-symbol";
    604                 printf("yydebug: state %d, reading %d (%s)\n",
    605                         YYFINAL, yychar, yys);
     608                printf("%sdebug: state %d, reading %d (%s)\n",
     609                        YYPREFIX, YYFINAL, yychar, yys);
    606610            }
    607611#endif
     
    617621#if YYDEBUG
    618622    if (yydebug)
    619         printf("yydebug: after reduction, shifting from state %d \
    620 to state %d\n", *yyssp, yystate);
     623        printf("%sdebug: after reduction, shifting from state %d \
     624to state %d\n", YYPREFIX, *yyssp, yystate);
    621625#endif
    622626    if (yyssp >= yyss + yystacksize - 1)
Note: See TracChangeset for help on using the changeset viewer.