Skip to content

GMMDMDIDEMS/antlr4-rddl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

antlr4-rddl

An ANTLR4 grammar for RDDL files.

Installation

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
  }

Code Generation

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

Further Development and Resources

References

Releases

No releases published

Packages

No packages published