Giron
v0.1.1
Table of Contents
Introduction
Giron is an ECMAScript parser written in Rust which outputs Rust strucs or JSON in the ESTree specification format.
The giron-wasm
provides the compiled .wasm binary and javascript interface for using the giron parser on the web.
Note: giron is a work in progress.
Contribution
This repository is looking for contributors. There's still a lot of work to be done, but some of the priorities right now are:
- Add more tests, ensure parity with output from esprima and/or acorn.
- Update parser and ESTree to be ECMAScript 2020 compliant.
- Add all early errors from the ECMAScript specification to the parser.
- Refactor the codebase to increase readability and add more documentation.
- Improve performance.
- Add JSX support.
Installation
Get from crates.io: https://crates.io/crates/giron
Usage
Once you add giron
to your Cargo.toml,
Basic Usage:
use ;
Giron Errors:
use ;
Parse contents of a javascript file:
use ;
use fs;