- Notifications
You must be signed in to change notification settings - Fork1
An ANTLR4 grammar for RDDL files.
License
NotificationsYou must be signed in to change notification settings
GMMDMDIDEMS/antlr4-rddl
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
An ANTLR4 grammar for RDDL files.
Theantlr4ng
package is required forTypeScript
code generation. It can be installed via
npm i
For the generation ofJava
code, theANTLR4 grammar syntax support package is used. To adopt the folder structure as specified in this repository, you must add the following to yoursettings.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.
ForTypeScript
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 usingAntlrVSIX
- Dependency locking withshrinkwrap
- Addunittests