#ifndef ___FUNDLS #define ___FUNDLS #include typedef int BOOLEAN; const TRUE = 1; const FALSE = 0; const CONST_FLAG = 99; const LIST_SIZE = 20; const TOKEN_SIZE = 20; const ERROR_FLAG = -1; // assume this is an illegal value ///////////////////////// THE CLASS OFFSET ////////////////////////////// // In an offset pair, // the first element is an integer giving the number of activation // records backward to search // the second element is an integer giving the index position within // the given list in the given activation record // These elements may be accessed by the public functions // "get_first" and "get_second". class offset { protected: int first; int second; public: offset(int f, int s) {first=f; second=s;}; // constructor int get_first(void) {return first;}; int get_second(void) {return second;}; }; // Overload the C++ output operator to handle offsets ostream& operator<<(ostream &os, offset *o); #endif