Generic
Lexer package is a basic set of classes to help in quickly prototyping a lexer/scanner for a given language.See: Description
Interface | Description |
---|---|
GenericTokens |
The
GenericTokens interface describes the tokens for a generic lexer. |
Class | Description |
---|---|
BraceHelper |
The
BraceHelper class is a helper class that can be used by brace matching implementations for language definitions based on the Language API. |
GenericLexer |
The
GenericLexer is a concrete implementation of the Lexer interface that can be used to lex Language implementations. |
Language |
The
Language interface provides methods for providing basic details of a language, such as the keywords, the comment delimiters, and the quote delimiters of a language. |
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.