ifndef LEX_H define LEX_H include <iostream.h> // example class lex // The default name for the class // generated by oolex is lex. // This is equivalent to putting // %class lex // in the scanner file. // If you want another name put // %class name // in your lex-file. // You will then have to declare the class name // similar to the lex below. // Do not forget to include scanner.h in that case. include <grammar/scanner.h>
class lex : public lex_scanner { public: lex(istream& in = cin, ostream& out = cout ) : lex_scanner(&in,&out) { } term* operator()(); };
// An example of main() is given below. define MAIN main() { lex l; l(); } endif
Hush Online Technology
hush@cs.vu.nl
11/03/98 |
![]() |
![]() |