js_parser 0.1.2

Javascript Parser : generate Aleph Syntax Tree.
Documentation

js_parser

Parses JavaScript source code into an AlephTree. Built on top of rslint_parser.

Installation

[dependencies]
js_parser = "0.1"

Usage

let ast = js_parser::parse(source_code);

Example

Input:

function add(a, b) {
    return a + b;
}

Produces an AlephTree::LetRec with two arguments and an Add body.

Related