Parses JavaScript source code into an AlephTree.
Built on top of rslint_parser.
[dependencies]
js_parser = "0.1"let ast = js_parser::parse(source_code);Input:
function add(a, b) {
return a + b;
}Produces an AlephTree::LetRec with two arguments and an Add body.
aleph-syntax-tree— AST definitionalephc— uses this parser with--features js_parse