This commit is contained in:
parent
f857751606
commit
aae2e8e05f
168 changed files with 11625 additions and 0 deletions
29
Utils/Parser Generator/SOURCE/yycsetup.cpp
Normal file
29
Utils/Parser Generator/SOURCE/yycsetup.cpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
/************************************************************
|
||||
yycsetup.cpp
|
||||
This file can be freely modified for the generation of
|
||||
custom code.
|
||||
|
||||
Copyright (c) 1999 Bumble-Bee Software Ltd.
|
||||
************************************************************/
|
||||
|
||||
#include "cyacc.h"
|
||||
|
||||
int yyparser::yysetup()
|
||||
{
|
||||
// initialise variables
|
||||
yytop = -1;
|
||||
yylookahead = 0;
|
||||
yyskip = 0;
|
||||
yyerrorcount = 0;
|
||||
yychar = -1;
|
||||
yypopflg = 0;
|
||||
|
||||
// push initial state onto the stack
|
||||
if (!yypush(0)) {
|
||||
#ifdef YYDEBUG
|
||||
yydabort();
|
||||
#endif
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue