Generates lexical scanners from one or more JFlex grammer files.
Mojo Attributes :
generate-sources| Name | Type | Description |
|---|---|---|
| backup | boolean |
A flag whether to enable the generation of a backup copy if the generated
source file already exists. Default value is true. |
| dot | boolean |
Whether to produce graphviz .dot files for the generated automata. This
feature is EXPERIMENTAL. Default value is false. |
| generationMethod | String |
The generation method to use for the scanner. Valid values are
switch, table and pack.
Please see the JFlex
manual
for more details about the various methods. Default value is pack. |
| jlex | boolean |
Strict JLex compatibility. Default value is false. |
| lexDefinitions | File[] |
List of grammar definitions to run the JFlex parser generator on.
Each path may either specify a single grammar file or a directory.
Directories will be recursively scanned for files with one of the
following extensions: ".jflex", ".flex", ".jlex" or ".lex".
By default, all files in src/main/jflex will be
processed. |
| minimize | boolean |
A flag whether to perform the DFA minimization step during scanner
generation. Default value is true. |
| outputDirectory | File |
Name of the directory into which JFlex should generate the parser. |
| skeleton | File |
Use external skeleton file. |
| staleMillis | int |
The granularity in milliseconds of the last modification date for
testing whether a source needs regeneration. Default value is 0. |
| verbose | boolean |
Whether source code generation should be verbose. Default value is false. |
A flag whether to enable the generation of a backup copy if the generated source file already exists.
booleanNotrueWhether to produce graphviz .dot files for the generated automata. This feature is EXPERIMENTAL.
booleanNofalseThe generation method to use for the scanner. Valid values are
switch, table and pack.
Please see the JFlex
manual
for more details about the various methods.
java.lang.StringNopackStrict JLex compatibility.
booleanNofalseList of grammar definitions to run the JFlex parser generator on.
Each path may either specify a single grammar file or a directory.
Directories will be recursively scanned for files with one of the
following extensions: ".jflex", ".flex", ".jlex" or ".lex".
By default, all files in src/main/jflex will be
processed.
java.io.File[]NoA flag whether to perform the DFA minimization step during scanner generation.
booleanNotrueName of the directory into which JFlex should generate the parser.
java.io.FileNo${project.build.directory}/generated-sources/jflexUse external skeleton file.
java.io.FileNoThe granularity in milliseconds of the last modification date for testing whether a source needs regeneration.
intNo${lastModGranularityMs}0Whether source code generation should be verbose.
booleanNofalse