/* * lexer.h * by CMB * */ extern FILE *yyin; // the name of the source code file the lexer will process // flex uses this variable extern void initLexer(); // needs to be called before first call to yylex. // defined in espresso.flex extern int yylex(); // the lexical analyzer routine generated by flex // this will be called by lextest.cc repeatedly extern int linenum; // the current line number of text input // lexer needs to update (i.e., code in espresso.flex) // lextest needs to report the value extern YYSTYPE yylval; // the value associated with the current token // lexer needs to update; lextest needs to report extern StringTab stringtab; // the string table variable