GithubHelp home page GithubHelp logo

gmmdmdidems / antlr4-rddl Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 126 KB

An ANTLR4 grammar for RDDL files.

License: MIT License

ANTLR 2.20% TypeScript 46.84% Java 50.96%
antlr antlr4 antlr4-grammar rddl

antlr4-rddl's Introduction

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

antlr4-rddl's People

Contributors

gmmdmdidems avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.