An ANTLR4 grammar for RDDL files.
The antlr4ng
package is required for TypeScript
code generation. It can be installed via
npm i
For the generation of Java
code, the ANTLR4 grammar syntax support package is used. To adopt the folder structure as specified in this repository, you must add the following to your settings.json
"antlr4.generation": {
"outputDir": "../../generated/Java",
"mode": "external",
"listeners": true,
"visitors": true
}
Java
code is automatically generated as soon as one of the .g4
files is saved.
For TypeScript
code, either run
npm run build
or use the following command
antlr4ng -Dlanguage=TypeScript -o src/main/generated/TypeScript/ -visitor -listener -Xexact-output-dir src/main/grammar/antlr4/RDDLLexer.g4 src/main/grammar/antlr4/RDDLParser.g4
- Grammar refactoring using AntlrVSIX
- Dependency locking with shrinkwrap
- Add unittests