The parser in this directory uses the mgree/libdash posix compliant parser and outputs the AST in JSON format using atdgen.
In order to install, one has to execute
make opam-dependencies && make libdash && make. The first command makes libdash and sets up all the ocaml dependencies.
Alternatively, one can install libdash (as explained in its README) and then run
To run the parser, one can run:
The following process was followed to make the parser output the ast to json.
atdgen -j -j-std ast_atd.atdto produce
This procedure is not automated, and in case the AST definition in libdash changes, this process has to be done again.