The Generic Lexer package is a basic set of classes to help in quickly prototyping a lexer/scanner for a given language. Such a lexer could be used with the editor language framework to provide basic syntax highlighting services for a language.

To use this framework, define a Language implementation which specifics the keywords, comments, strings, numbers, and brace aspects of the language.

To create a lexer for this language, simply instantiate a GenericLexer with an instance of your Language implementation.