https://github.com/thautwarm/RBNF.jl
I dislike this because I hate PEG's bad error hints and performance(maybe fast due to the radical compiler).
I'll keep this library but I'll support menhir for julia, just like what I did for python.
I dislike this because I hate PEG's bad error hints and performance(maybe fast due to the radical compiler).
I'll keep this library but I'll support menhir for julia, just like what I did for python.
TL;DR:
I'll make a parser gen for julia. You might be familiar with ANTLR, but my flavour is http://gallium.inria.fr/~fpottier/menhir/
Demo: https://github.com/derdon/menhir-example/blob/master/parser.mly
First comes the intuitive and simple usage. More features: crazy performance, reasonable error hints, grammar reuse, etc.
I'll make a parser gen for julia. You might be familiar with ANTLR, but my flavour is http://gallium.inria.fr/~fpottier/menhir/
Demo: https://github.com/derdon/menhir-example/blob/master/parser.mly
First comes the intuitive and simple usage. More features: crazy performance, reasonable error hints, grammar reuse, etc.
I've already finished the parser analyzer and IR generator, as well as a python backend: https://github.com/thautwarm/frontend-for-free
The example JSON parser generated to python: https://github.com/thautwarm/frontend-for-free/blob/cfg/runtest/rbnfjson/json_parser.py
Julia parser gen is done, I just need to integrate Automata.jl as the lexer gen.
The example JSON parser generated to python: https://github.com/thautwarm/frontend-for-free/blob/cfg/runtest/rbnfjson/json_parser.py
Julia parser gen is done, I just need to integrate Automata.jl as the lexer gen.