OOYacc is an Object Oriented version
of standard Berkeley Yacc v1.9.
typedef union{
....
....
} YYSTYPE; // redefine YYSTYPE if
using multiple grammars
class <symbol prefix>Parser{
// The default symbol prefix is yy. User defined prefixes
// are useful when having more than one
// parser class.
private:
int yydebug;
int yynerrs;
int yyerrflag;
int yychar;
short *yyssp;
YYSTYPE *yyvsp;
YYSTYPE yyval;
YYSTYPE yylval;
short yyss[YYSTACKSIZE];
YYSTYPE yyvs[YYSTACKSIZE];
int yym,yyn,yystate;
char* yys;
public:
yyParser();
// default constructor of the parser.
int yyparse();
// the parser function
YYSTYPE* getLVal();
// function to retrieve the top of parser stack
};
You are visitor No since 16th April 1998