//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //+ Student: Junshan Li + //+ Proj. Assignemnt: Five + //+ Due Date: Febuary 26, 2001 + //+ Course Name: MSCS 518 - Compiler Design + //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // rwtable.h // rwtable class definition. #ifndef RWTABLEH #define RWTABLEH class rwtable { private: int C[128]; // an int array with char with index. char* rwArr[35]; // a str array to hold reserved words for Lang2. public: rwtable(); void display(); // display characteristics of reserved word table. int numPosCode(int c); // provide the numeric position code for c. int rwhash(char* w); char* resWord(unsigned int rwHashValue) {return rwArr[rwHashValue]; } }; // end of class rwtable definition. #endif