@freelog/resource-policy-lang

policy language compiler for freelog

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00May 24, 2021Feb 27, 2018Minified + gzip package size for @freelog/resource-policy-lang in KB

Readme

resource-policy-lang

resource policy language for freelog

install

$ npm i @freelog/resource-policy-lang -S

dev

  1. make sure you have java environment, including jdk

  2. install antlr4

  3. compile grammar

to JavaScript target

antlr4 -Dlanguage=JavaScript -visitor resourcePolicy.g4 -o gen

to java target, for visualize AST and other purpose

antlr4 resourcePolicy.g4
  1. compile generated JavaScript target Java target

    javac *.java
    
  2. run parser against a test case

    grun resourcePolicy policy -gui < test/novel_community_p1.policy
    

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.