implementing_lexer.md: update reference to GrammarKit (preferred plugin)

This commit is contained in:
Yann Cébron 2019-06-07 11:05:19 +02:00
parent 969bb10c71
commit c04f2e3b73

View File

@ -55,15 +55,11 @@ Enabling `--charat` option passes the source data for lexing as a
and not as an array of characters.
For developing lexers using JFlex, the
[JFlex Support](https://plugins.jetbrains.com/plugin/263-jflex-support)
plugin can be useful.
For developing lexers using JFlex, the [GrammarKit plugin](https://plugins.jetbrains.com/plugin/6606-grammar-kit) can be useful.
It provides syntax highlighting and other useful features for editing JFlex files.
[GrammarKit plugin](https://plugins.jetbrains.com/plugin/6606-grammar-kit)
also has builtin JFlex support.
There is also an (older) [JFlex Support](https://plugins.jetbrains.com/plugin/263-jflex-support) plugin available.
**Note:**
Lexers, and in particular JFlex-based lexers, need to be created in such a way that they always match the entire contents of the file, without any gaps between tokens, and generate special tokens for characters which are not valid at their location.
> **NOTE** Lexers, and in particular JFlex-based lexers, need to be created in such a way that they always match the entire contents of the file, without any gaps between tokens, and generate special tokens for characters which are not valid at their location.
Lexers must never abort prematurely because of an invalid character.
**Example**: