Crate boa_parser

Crate boa_parser 

Source
Expand description

Boa’s boa_parser crate is a parser targeting the latest ECMAScript language specification.

§Crate Overview

This crate contains implementations of a Lexer and a Parser for the ECMAScript language. The lexical grammar and the syntactic grammar being targeted are fully defined in the specification. See the links provided for more information.

§About Boa

Boa is an open-source, experimental ECMAScript Engine written in Rust for lexing, parsing and executing ECMAScript/JavaScript. Currently, Boa supports some of the language. More information can be viewed at Boa’s website.

Try out the most recent release with Boa’s live demo playground.

§Boa Crates

  • boa_cli - Boa’s CLI && REPL implementation
  • boa_ast - Boa’s ECMAScript Abstract Syntax Tree.
  • boa_engine - Boa’s implementation of ECMAScript builtin objects and execution.
  • boa_gc - Boa’s garbage collector.
  • boa_icu_provider - Boa’s ICU4X data provider.
  • boa_interner - Boa’s string interner.
  • boa_macros - Boa’s macros.
  • boa_parser - Boa’s lexer and parser.
  • boa_runtime - Boa’s WebAPI features.
  • boa_string - Boa’s ECMAScript string implementation.
  • tag_ptr - Utility library that enables a pointer to be associated with a tag of type usize.
  • small_btree - Utility library that adds the SmallBTreeMap data structure.

Re-exports§

pub use error::Error;
pub use lexer::Lexer;
pub use parser::Parser;
pub use source::Source;

Modules§

error
Error and result implementation for the parser.
lexer
Boa’s lexical analyzer(Lexer) for ECMAScript source code.
parser
Boa parser implementation.
source
Boa parser input source types.