diff options
Diffstat (limited to 'lexlib/LexerModule.h')
-rw-r--r-- | lexlib/LexerModule.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/lexlib/LexerModule.h b/lexlib/LexerModule.h index c9ec4700d..ab338bec6 100644 --- a/lexlib/LexerModule.h +++ b/lexlib/LexerModule.h @@ -20,8 +20,9 @@ typedef ILexer *(*LexerFactoryFunction)(); /** * A LexerModule is responsible for lexing and folding a particular language. - * The class maintains a list of LexerModules which can be searched to find a + * The Catalogue class maintains a list of LexerModules which can be searched to find a * module appropriate to a particular language. + * The ExternalLexerModule subclass holds lexers loaded from DLLs or shared libraries. */ class LexerModule { protected: @@ -35,20 +36,21 @@ protected: public: const char *languageName; - LexerModule(int language_, + LexerModule( + int language_, LexerFunction fnLexer_, - const char *languageName_=0, - LexerFunction fnFolder_=0, - const char * const wordListDescriptions_[] = NULL, + const char *languageName_=nullptr, + LexerFunction fnFolder_= nullptr, + const char * const wordListDescriptions_[]=nullptr, const LexicalClass *lexClasses_=nullptr, size_t nClasses_=0); - LexerModule(int language_, + LexerModule( + int language_, LexerFactoryFunction fnFactory_, const char *languageName_, - const char * const wordListDescriptions_[] = NULL); - virtual ~LexerModule() { - } - int GetLanguage() const { return language; } + const char * const wordListDescriptions_[]=nullptr); + virtual ~LexerModule(); + int GetLanguage() const; // -1 is returned if no WordList information is available int GetNumWordLists() const; |