diff options
Diffstat (limited to 'LuaSL/src/btyacc-c.ske')
-rw-r--r-- | LuaSL/src/btyacc-c.ske | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/LuaSL/src/btyacc-c.ske b/LuaSL/src/btyacc-c.ske index dc37b17..399a25c 100644 --- a/LuaSL/src/btyacc-c.ske +++ b/LuaSL/src/btyacc-c.ske | |||
@@ -272,7 +272,7 @@ int yyparse(void *YYPARSE_PARAM) { | |||
272 | if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; | 272 | if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; |
273 | if (!yys) yys = "illegal-symbol"; | 273 | if (!yys) yys = "illegal-symbol"; |
274 | fprintf(stderr, "btyacc[%3d,%2d%s]: read token %d (%s)", | 274 | fprintf(stderr, "btyacc[%3d,%2d%s]: read token %d (%s)", |
275 | yystate, yydepth, (yytrial ? ",trial" : ""), yychar, yys); | 275 | yystate, (int) yydepth, (yytrial ? ",trial" : ""), yychar, yys); |
276 | # ifdef YYDBPR | 276 | # ifdef YYDBPR |
277 | fputc('<', stderr); | 277 | fputc('<', stderr); |
278 | YYDBPR(yylval); | 278 | YYDBPR(yylval); |
@@ -294,7 +294,7 @@ int yyparse(void *YYPARSE_PARAM) { | |||
294 | # if YYDEBUG | 294 | # if YYDEBUG |
295 | if (yydebug) { | 295 | if (yydebug) { |
296 | fprintf(stderr, "btyacc[%3d,%2d%s]: CONFLICT: following successful " | 296 | fprintf(stderr, "btyacc[%3d,%2d%s]: CONFLICT: following successful " |
297 | "trial parse\n", yystate, yydepth, (yytrial ? ",trial" :"")); | 297 | "trial parse\n", yystate, (int) yydepth, (yytrial ? ",trial" :"")); |
298 | } | 298 | } |
299 | # endif | 299 | # endif |
300 | /* Switch to the next conflict context */ | 300 | /* Switch to the next conflict context */ |
@@ -312,7 +312,7 @@ int yyparse(void *YYPARSE_PARAM) { | |||
312 | # if YYDEBUG | 312 | # if YYDEBUG |
313 | if (yydebug) { | 313 | if (yydebug) { |
314 | fprintf(stderr, "btyacc[%3d,%2d%s]: CONFLICT. ", | 314 | fprintf(stderr, "btyacc[%3d,%2d%s]: CONFLICT. ", |
315 | yystate, yydepth, (yytrial ? ",trial" : "")); | 315 | yystate, (int) yydepth, (yytrial ? ",trial" : "")); |
316 | if(yyps->save) | 316 | if(yyps->save) |
317 | fputs("ALREADY in conflict, continuing trial parse.\n", stderr); | 317 | fputs("ALREADY in conflict, continuing trial parse.\n", stderr); |
318 | else | 318 | else |
@@ -379,7 +379,7 @@ int yyparse(void *YYPARSE_PARAM) { | |||
379 | # if YYDEBUG | 379 | # if YYDEBUG |
380 | if (yydebug) | 380 | if (yydebug) |
381 | fprintf(stderr, "btyacc[%3d,%2d%s]: shifting to state %d\n", | 381 | fprintf(stderr, "btyacc[%3d,%2d%s]: shifting to state %d\n", |
382 | yystate, yydepth, (yytrial ? ",trial" : ""), yyctable[ctry]); | 382 | yystate, (int) yydepth, (yytrial ? ",trial" : ""), yyctable[ctry]); |
383 | # endif | 383 | # endif |
384 | if (yychar < 0) { | 384 | if (yychar < 0) { |
385 | yylvp++; yylpp++; yylexp++; | 385 | yylvp++; yylpp++; yylexp++; |
@@ -402,7 +402,7 @@ int yyparse(void *YYPARSE_PARAM) { | |||
402 | # if YYDEBUG | 402 | # if YYDEBUG |
403 | if (yydebug) | 403 | if (yydebug) |
404 | fprintf(stderr, "btyacc[%3d,%2d%s]: shifting to state %d\n", | 404 | fprintf(stderr, "btyacc[%3d,%2d%s]: shifting to state %d\n", |
405 | yystate, yydepth, (yytrial ? ",trial" : ""), yytable[yyn]); | 405 | yystate, (int) yydepth, (yytrial ? ",trial" : ""), yytable[yyn]); |
406 | # endif | 406 | # endif |
407 | yychar = YYEMPTY; | 407 | yychar = YYEMPTY; |
408 | if (yyps->errflag > 0) --yyps->errflag; | 408 | if (yyps->errflag > 0) --yyps->errflag; |
@@ -439,8 +439,8 @@ yyerrhandler: | |||
439 | if (yydebug) | 439 | if (yydebug) |
440 | fprintf(stderr, "btyacc[%3d,%2d%s]: ERROR, " | 440 | fprintf(stderr, "btyacc[%3d,%2d%s]: ERROR, " |
441 | "CONFLICT BACKTRACKING to state %d, %d tokens\n", | 441 | "CONFLICT BACKTRACKING to state %d, %d tokens\n", |
442 | yystate, yydepth, (yytrial ? ",trial" : ""), | 442 | yystate, (int) yydepth, (yytrial ? ",trial" : ""), |
443 | yyps->save->state, yylvp - yylvals - yyps->save->lexeme); | 443 | yyps->save->state, (int) (yylvp - yylvals - yyps->save->lexeme)); |
444 | # endif | 444 | # endif |
445 | /* Memorize most forward-looking error state in case | 445 | /* Memorize most forward-looking error state in case |
446 | it's really an error. */ | 446 | it's really an error. */ |
@@ -528,7 +528,7 @@ yyerrhandler: | |||
528 | if (yydebug) | 528 | if (yydebug) |
529 | fprintf(stderr, "btyacc[%3d,%2d%s]: ERROR recovery shifts to " | 529 | fprintf(stderr, "btyacc[%3d,%2d%s]: ERROR recovery shifts to " |
530 | "state %d\n", | 530 | "state %d\n", |
531 | *(yyps->ssp), yydepth, (yytrial ? ",trial" : ""), | 531 | *(yyps->ssp), (int) yydepth, (yytrial ? ",trial" : ""), |
532 | yytable[yyn]); | 532 | yytable[yyn]); |
533 | # endif | 533 | # endif |
534 | /* Use label yyerrlab, so that compiler does not warn */ | 534 | /* Use label yyerrlab, so that compiler does not warn */ |
@@ -540,7 +540,7 @@ yyerrhandler: | |||
540 | if (yydebug) | 540 | if (yydebug) |
541 | fprintf(stderr, | 541 | fprintf(stderr, |
542 | "btyacc[%3d,%2d%s]: ERROR recovery discards this state\n", | 542 | "btyacc[%3d,%2d%s]: ERROR recovery discards this state\n", |
543 | *(yyps->ssp), yydepth, (yytrial ? ",trial" : "")); | 543 | *(yyps->ssp), (int) yydepth, (yytrial ? ",trial" : "")); |
544 | # endif | 544 | # endif |
545 | if (yyps->ssp <= yyps->ss) { | 545 | if (yyps->ssp <= yyps->ss) { |
546 | goto yyabort; | 546 | goto yyabort; |
@@ -563,7 +563,7 @@ yyerrhandler: | |||
563 | if (!yys) yys = "illegal-symbol"; | 563 | if (!yys) yys = "illegal-symbol"; |
564 | fprintf(stderr, "btyacc[%3d,%2d%s]: ERROR recovery discards token " | 564 | fprintf(stderr, "btyacc[%3d,%2d%s]: ERROR recovery discards token " |
565 | "%d (%s)\n", | 565 | "%d (%s)\n", |
566 | yystate, yydepth, (yytrial ? ",trial" : ""), yychar, yys); | 566 | yystate, (int) yydepth, (yytrial ? ",trial" : ""), yychar, yys); |
567 | } | 567 | } |
568 | # endif | 568 | # endif |
569 | if(!yytrial) { | 569 | if(!yytrial) { |
@@ -580,7 +580,7 @@ yyreduce: | |||
580 | # if YYDEBUG | 580 | # if YYDEBUG |
581 | if (yydebug) { | 581 | if (yydebug) { |
582 | fprintf(stderr, "btyacc[%3d,%2d%s]: reducing by rule %d (%s)", | 582 | fprintf(stderr, "btyacc[%3d,%2d%s]: reducing by rule %d (%s)", |
583 | yystate, yydepth, (yytrial ? ",trial" : ""), yyn, yyrule[yyn]); | 583 | yystate, (int) yydepth, (yytrial ? ",trial" : ""), yyn, yyrule[yyn]); |
584 | # ifdef YYDBPR | 584 | # ifdef YYDBPR |
585 | if (yym) { | 585 | if (yym) { |
586 | int i; | 586 | int i; |
@@ -648,7 +648,7 @@ yyreduce: | |||
648 | if (yydebug) { | 648 | if (yydebug) { |
649 | fprintf(stderr, | 649 | fprintf(stderr, |
650 | "btyacc[ 0,%2d%s]: reduced, shifting to final state %d\n", | 650 | "btyacc[ 0,%2d%s]: reduced, shifting to final state %d\n", |
651 | yydepth, (yytrial ? ",trial" : ""), YYFINAL); | 651 | (int) yydepth, (yytrial ? ",trial" : ""), YYFINAL); |
652 | } | 652 | } |
653 | # endif | 653 | # endif |
654 | yystate = YYFINAL; | 654 | yystate = YYFINAL; |
@@ -667,7 +667,7 @@ yyreduce: | |||
667 | if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; | 667 | if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; |
668 | if (!yys) yys = "illegal-symbol"; | 668 | if (!yys) yys = "illegal-symbol"; |
669 | fprintf(stderr, "btyacc[%3d,%2d%s]: read %d (%s)\n", | 669 | fprintf(stderr, "btyacc[%3d,%2d%s]: read %d (%s)\n", |
670 | YYFINAL, yydepth, (yytrial ? ",trial" : ""), yychar, yys); | 670 | YYFINAL, (int) yydepth, (yytrial ? ",trial" : ""), yychar, yys); |
671 | } | 671 | } |
672 | # endif | 672 | # endif |
673 | } | 673 | } |
@@ -684,7 +684,7 @@ yyreduce: | |||
684 | # if YYDEBUG | 684 | # if YYDEBUG |
685 | if (yydebug) | 685 | if (yydebug) |
686 | fprintf(stderr, "btyacc[%3d,%2d%s]: reduced, shifting to state %d\n", | 686 | fprintf(stderr, "btyacc[%3d,%2d%s]: reduced, shifting to state %d\n", |
687 | *(yyps->ssp), yydepth, (yytrial ? ",trial" : ""), yystate); | 687 | *(yyps->ssp), (int) yydepth, (yytrial ? ",trial" : ""), yystate); |
688 | # endif | 688 | # endif |
689 | if (yyps->ssp >= yyps->ss + yyps->stacksize - 1) { | 689 | if (yyps->ssp >= yyps->ss + yyps->stacksize - 1) { |
690 | yyMoreStack(yyps); | 690 | yyMoreStack(yyps); |
@@ -711,8 +711,8 @@ yyvalid: | |||
711 | if (yydebug) | 711 | if (yydebug) |
712 | fprintf(stderr, "btyacc[%3d,%2d%s]: CONFLICT trial successful, " | 712 | fprintf(stderr, "btyacc[%3d,%2d%s]: CONFLICT trial successful, " |
713 | "backtracking to state %d, %d tokens\n", | 713 | "backtracking to state %d, %d tokens\n", |
714 | yystate, yydepth, (yytrial ? ",trial" : ""), | 714 | yystate, (int) yydepth, (yytrial ? ",trial" : ""), |
715 | yypath->state, yylvp - yylvals - yypath->lexeme); | 715 | yypath->state, (int) (yylvp - yylvals - yypath->lexeme)); |
716 | # endif | 716 | # endif |
717 | if(yyerrctx) { | 717 | if(yyerrctx) { |
718 | yyFreeState(yyerrctx); yyerrctx = 0; | 718 | yyFreeState(yyerrctx); yyerrctx = 0; |