0.0.2 • Published 8 years ago

jvm-krl-parser v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

jvm-krl-parser

extracting the KRL parser from KRE

Running

$ java -jar parser/krl_parser.jar <your-krl-file>

That will output the ast in json.

From node.js

$ npm install --save jvm-krl-parser
var parser = require('jvm-krl-parser');

parser(krl_file_path, function(err, ast){
  // ...
});

Contributing

The antlr grammar file is here: parser/RuleSet.g

The main class entry-point for the jar is here: parser/src/KRLParser.java

To re-compile the jar:

$ cd parser/
$ ./compile.sh

License

MIT