Generate Parser Task
Task to generate a parser for the IntelliJ Platform Grammar Kit.
This task runs a Java process to generate parser and PSI files using a provided BNF file. It supports purging old files before generation, as well as specifying paths for outputs relative to a root output directory.
This task is part of the IntelliJ Platform plugin development process and integrates with Gradle for task registration and execution.
Properties
The location of the generated parser class, relative to the targetRootOutputDir. Stale files are purged only from this path and pathToPsiRoot.
The location of the generated PSI files, relative to the targetRootOutputDir. Stale files are purged only from this path and pathToParser.
Purge old parser and PSI files before generating the parser. Purging requires pathToParser and pathToPsiRoot to be set, so that only generated outputs are removed.
Required. The source BNF file to generate the parser from.
Required. The output root directory.
Functions
The output parser file computed from the pathToParser property.
The output PSI directory computed from the pathToPsiRoot property.