Thanks to visit codestin.com
Credit goes to lib.rs

#ast #js #js-syntax

boa_ast

Abstract Syntax Tree definition for the Boa JavaScript engine

9 unstable releases

Uses new Rust 2024

0.21.0 Oct 21, 2025
0.20.0 Dec 5, 2024
0.19.1 Sep 12, 2024
0.19.0 Jul 11, 2024
0.17.0 Jul 8, 2023

#10 in Programming languages

Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App

155,719 downloads per month
Used in 46 crates (3 directly)

Unlicense OR MIT

1MB
21K SLoC

Boa's boa_ast crate implements an ECMAScript abstract syntax tree.

Crate Overview

boa_ast contains representations of Parse Nodes as defined by the ECMAScript spec. Some Parse Nodes are not represented by Boa's AST, because a lot of grammar productions are only used to throw Early Errors, and don't influence the evaluation of the AST itself.

Boa's AST is mainly split in three main components: Declarations, Expressions and Statements, with StatementList being the primordial Parse Node that combines all of them to create a proper AST.

Dependencies

~2.2–3MB
~59K SLoC