|
ISLEman
|
Manages programming language parsers. More...
#include <parserintf.h>
Public Member Functions | |
| ParserManager () | |
| Creates the parser manager object. | |
| void | registerDefaultParser (ParserInterface *parser) |
| void | registerParser (const char *name, ParserInterface *parser) |
| Registers an additional parser. More... | |
| bool | registerExtension (const char *extension, const char *parserName) |
| Registers a file extension with a parser with name parserName. More... | |
| ParserInterface * | getParser (const char *extension) |
| Gets the interface to the parser associated with given extension. More... | |
Manages programming language parsers.
This class manages the language parsers in the system. One can register parsers, and obtain a parser given a file extension.
|
inline |
Gets the interface to the parser associated with given extension.
If there is no parser explicitly registered for the supplied extension, the interface to the default parser will be returned.
|
inline |
Registers a file extension with a parser with name parserName.
Returns TRUE if the extension was successfully registered.
|
inline |
Registers an additional parser.
| [in] | name | A symbolic name of the parser, i.e. "c", "python", "fortran", "vhdl", ... |
| [in] | parser | The parser that is to be used for the given name. |
1.8.12