#ifndef HELP_YACC_CLASS #define HELP_YACC_CLASS // help_yacc: defines yacc as using a pointer to a tree for its parsing // stack and provides a few common needs for parsing, like access to yytext. #include "zeno_tree.h" // YYSTYPE: stack type for yacc during parsing. #define YYSTYPE zeno_tree * // yylex: the function called to obtain characters from the standard input // and convert them into a token number. int yylex(); // yytext: the characters held in the most recently parsed token. extern char yytext[]; // yylineno: the current line number in the source program, starting at 1. extern int yylineno; // yycurrent_position: the current character position within the current line // being parsed. extern int yycurrent_position; // yyparse: the function called to match the tokens returned by yylex() // against the patterns defined in the language grammar. int yyparse(); #endif