Crate ecmascript[][src]

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.

Re-exports

pub use parser::parse;

Modules

ast

This module contains type definitions for the Abstract Syntax elements that make up the ECMAScript language.

parser

This module contains a main entry point, that takes a str slice and returns you a constructed Abstract Syntax Tree. The AST types are documented in the ast module.

Macros

build_ast

This macro makes constructing complicated syntax trees very easy. This can be useful for re-writing parts of the AST, or deriving a a syntax tree from other trees (eg. concatenating syntax trees).