antlr4-maven-plugin/src/site/apt/examples/import.apt
raw| 1 | Imported Grammar Files |
| 2 | |
| 3 | In order to have the ANTLR plugin automatically locate and use grammars used |
| 4 | as imports in your main <<<.g4>>> files, you need to place the imported grammar |
| 5 | files in the <<<imports>>> directory beneath the root directory of your grammar |
| 6 | files (which is <<<src/main/antlr4>>> by default of course). |
| 7 | |
| 8 | For a default layout, place your import grammars in the directory: <<<src/main/antlr4/imports>>> |