1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | /* SI 413 Fall 2012 * Lab 05 * Header file for scanner-parser interface */ #ifndef PAT_H #define PAT_H #include <string> #include "colorout.hpp" // Token labels enum Token { SYM=1, FOLD, STOP, COLON, NAME, REV, LB, RB }; // The semantic value associated with each token extern std::string yylval; // Prototype for yylex(), aka getNextToken() int yylex(); // Global variables for printing in pretty colors extern colorout resout; extern colorout errout; #endif // PAT_H |