This commit is contained in:
parent
f857751606
commit
aae2e8e05f
168 changed files with 11625 additions and 0 deletions
46
Utils/Parser Generator/SOURCE/yymsskip.c
Normal file
46
Utils/Parser Generator/SOURCE/yymsskip.c
Normal file
|
@ -0,0 +1,46 @@
|
|||
/************************************************************
|
||||
yymsskip.c
|
||||
This file can be freely modified for the generation of
|
||||
custom code.
|
||||
|
||||
Copyright (c) 1999 Bumble-Bee Software Ltd.
|
||||
************************************************************/
|
||||
|
||||
#include <stdio.h>
|
||||
#include "myacc.h"
|
||||
|
||||
#ifdef YYDEBUG
|
||||
#ifdef YYPROTOTYPE
|
||||
void YYCDECL yymsetskip(yymparse_t YYFAR *yy, int skip)
|
||||
#else
|
||||
void YYCDECL yymsetskip(yy, skip)
|
||||
yymparse_t YYFAR *yy;
|
||||
int skip;
|
||||
#endif
|
||||
{
|
||||
yyassert(yy != NULL);
|
||||
yyassert(skip >= 0);
|
||||
|
||||
/* debugging */
|
||||
if (yydebug || yy->yymdebug) {
|
||||
if (skip > 0) {
|
||||
if (yy->yymskip == 0) {
|
||||
char string[128];
|
||||
|
||||
sprintf(string, "%p: entering error recovery\n", (void *) yy);
|
||||
yymparsedebugoutput(yy, string);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (yy->yymskip > 0) {
|
||||
char string[128];
|
||||
|
||||
sprintf(string, "%p: leaving error recovery\n", (void *) yy);
|
||||
yymparsedebugoutput(yy, string);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
yy->yymskip = skip;
|
||||
}
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue