1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#![deny(missing_docs)]
#![recursion_limit = "256"]

//! # ecmascript
//! `ecmascript` is a crate that helps you parse the ECMAScript 2017 v8.0 language.
//! It also provides some useful macros to help you construct the AST
//! if you want to perform some operations on it.

#[macro_use]
extern crate combine;
#[macro_use]
extern crate failure;
#[macro_use]
extern crate lazy_static;
extern crate unicode_xid;
#[macro_use]
extern crate serde_derive;

extern crate serde;
#[cfg(test)]
extern crate serde_json;

#[macro_use]
mod macros;
pub mod ast;
mod parser;
#[cfg(test)]
mod parser_fixture_tests;
#[cfg(test)]
mod parser_unit_test;

pub use parser::parse;