This commit is contained in:
parent
f857751606
commit
aae2e8e05f
168 changed files with 11625 additions and 0 deletions
36
Utils/Parser Generator/SOURCE/yymsetup.c
Normal file
36
Utils/Parser Generator/SOURCE/yymsetup.c
Normal file
|
@ -0,0 +1,36 @@
|
|||
/************************************************************
|
||||
yymsetup.c
|
||||
This file can be freely modified for the generation of
|
||||
custom code.
|
||||
|
||||
Copyright (c) 1999 Bumble-Bee Software Ltd.
|
||||
************************************************************/
|
||||
|
||||
#include "myacc.h"
|
||||
|
||||
#ifdef YYPROTOTYPE
|
||||
int YYCDECL yymsetup(yymparse_t YYFAR *yy)
|
||||
#else
|
||||
int YYCDECL yymsetup(yy)
|
||||
yymparse_t YYFAR *yy;
|
||||
#endif
|
||||
{
|
||||
yyassert(yy != NULL);
|
||||
|
||||
/* initialise variables */
|
||||
yy->yymtop = -1;
|
||||
yy->yymlookahead = 0;
|
||||
yy->yymskip = 0;
|
||||
yy->yymerrorcount = 0;
|
||||
yy->yymchar = -1;
|
||||
yy->yympopflg = 0;
|
||||
|
||||
/* push initial state onto the stack */
|
||||
if (!yympush(yy, 0)) {
|
||||
#ifdef YYDEBUG
|
||||
yymdabort(yy);
|
||||
#endif
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue