Generate Lexer Task
The generateLexer task generates a lexer for the given grammar. The task is configured using common org.jetbrains.grammarkit.GrammarKitPluginExtension extension.
Properties
Purge old files from the target directory before generating the lexer.
An optional path to the skeleton file to use for the generated lexer. The path will be provided as --skel option. By default, it uses the idea-flex.skeleton skeleton file.
Required. The source Flex file to generate the lexer from.
The Java file name where the generated lexer will be written.
The output file computed from the targetDir and targetClass properties.
Required. The output directory for the generated lexer.
Functions
The location of the lexer class computed from the targetOutputDir. Because the lexer class is defined in the flex file, it needs to be passed here too.