ParserRegistration
A ParserRegistration is a class which keeps track of what parsers are
avaiable. Just create a static ParserRegistration object for each of
your parsers; this will cause the parser to be listed in the menu of
parsers.
class ParserRegistration {
ParserRegistration(parser* (*func)(), const char*);
};
ParserRegistration(parser* (*func)(), const char* name)
- Creates a ParserRegistration for the parser named name. func
should be a function which news an instance of the parser and returns
a pointer to it. Rogus will be responsible for deleting it.
Modified 4 November 1995 pepellet@mit.edu