#javascript-parser

boa_ast

Abstract Syntax Tree definition for the Boa JavaScript engine

7 releases

0.19.1 Sep 12, 2024
0.19.0 Jul 11, 2024
0.18.0 Mar 7, 2024
0.17.3 Sep 26, 2023
0.17.0 Jul 8, 2023

#522 in Parser implementations

Download history 7775/week @ 2024-07-10 7395/week @ 2024-07-17 6105/week @ 2024-07-24 7008/week @ 2024-07-31 7112/week @ 2024-08-07 6987/week @ 2024-08-14 6222/week @ 2024-08-21 5286/week @ 2024-08-28 6415/week @ 2024-09-04 5678/week @ 2024-09-11 6040/week @ 2024-09-18 6317/week @ 2024-09-25 6707/week @ 2024-10-02 8535/week @ 2024-10-09 11694/week @ 2024-10-16 11431/week @ 2024-10-23

39,513 downloads per month
Used in 20 crates (2 directly)

Unlicense OR MIT

610KB
12K 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

~3–4MB
~70K SLoC