- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/packages/mg-1.3d/src/text/bool_parser.c
r13 r26 1 1 #ifndef lint 2 static char yysccsid[] = "@(#)yaccpar 1. 8 (Berkeley) 01/20/90";2 static char yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93"; 3 3 #endif 4 4 #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" 5 11 #line 25 "bool_parser.y" 6 12 … … 46 52 bool_tree_node *node; 47 53 } YYSTYPE; 48 #line 49"y.tab.c"54 #line 55 "y.tab.c" 49 55 #define TERM 257 50 56 #define YYERRCODE 256 … … 158 164 }; 159 165 #endif 160 #define yyclearin (yychar=(-1))161 #define yyerrok (yyerrflag=0)162 166 #ifdef YYSTACKSIZE 163 # ifndef YYMAXDEPTH167 #undef YYMAXDEPTH 164 168 #define YYMAXDEPTH YYSTACKSIZE 165 #endif166 169 #else 167 170 #ifdef YYMAXDEPTH … … 401 404 402 405 403 #line 40 4"y.tab.c"406 #line 407 "y.tab.c" 404 407 #define YYABORT goto yyabort 408 #define YYREJECT goto yyabort 405 409 #define YYACCEPT goto yyaccept 406 410 #define YYERROR goto yyerrlab … … 440 444 if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; 441 445 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); 444 448 } 445 449 #endif … … 450 454 #if YYDEBUG 451 455 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]); 454 458 #endif 455 459 if (yyssp >= yyss + yystacksize - 1) … … 491 495 #if YYDEBUG 492 496 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]); 495 499 #endif 496 500 if (yyssp >= yyss + yystacksize - 1) … … 506 510 #if YYDEBUG 507 511 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); 510 514 #endif 511 515 if (yyssp <= yyss) goto yyabort; … … 524 528 if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; 525 529 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); 528 532 } 529 533 #endif … … 534 538 #if YYDEBUG 535 539 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]); 538 542 #endif 539 543 yym = yylen[yyn]; … … 577 581 { yyval.node = CreateBoolTreeNode(N_or, yyvsp[-2].node, yyvsp[0].node); } 578 582 break; 579 #line 58 0"y.tab.c"583 #line 584 "y.tab.c" 580 584 } 581 585 yyssp -= yym; … … 587 591 #if YYDEBUG 588 592 if (yydebug) 589 printf(" yydebug: after reduction, shifting from state 0 to\590 state %d\n", YY FINAL);593 printf("%sdebug: after reduction, shifting from state 0 to\ 594 state %d\n", YYPREFIX, YYFINAL); 591 595 #endif 592 596 yystate = YYFINAL; … … 602 606 if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; 603 607 if (!yys) yys = "illegal-symbol"; 604 printf(" yydebug: state %d, reading %d (%s)\n",605 YY FINAL, yychar, yys);608 printf("%sdebug: state %d, reading %d (%s)\n", 609 YYPREFIX, YYFINAL, yychar, yys); 606 610 } 607 611 #endif … … 617 621 #if YYDEBUG 618 622 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 \ 624 to state %d\n", YYPREFIX, *yyssp, yystate); 621 625 #endif 622 626 if (yyssp >= yyss + yystacksize - 1)
Note:
See TracChangeset
for help on using the changeset viewer.