/* * Prints token string when given token value. * For tokens < 258, uses ASCII value of character. * For ones >= 258, prints a string version of the token. * For illegal token values >= 258, prints "" * special case: maps 0 to EOF * WARNING: If token values in espresso.tab.h change * -- this function may no longer work properly * * MOD 9/15/04 by CMB * added stuff to get it to compile with g++ version 3 */ #include using namespace std; void printToken (ostream &o, int token);