Decision Workspace
ecma-syntax-cat vs ecma-parse-cat vs boa_ast
Side-by-side comparison of Rust crates
ECMAScript abstract syntax tree as comp-cat-rs-idiomatic Rust types. ESTree-shaped, ES2024-complete, no panics, no Rc, no interior mutability. Foundation crate for boa-cat and related downstream tooling.
ECMAScript parser consuming ecma-lex-cat tokens and producing ecma-syntax-cat Program ASTs. Comprehensive ES2024 surface (classes, modules, destructuring, async/await, optional chaining, templates). v0.3.0 clears three async-syntax workarounds: (1) `obj.catch` and other reserved-word `IdentifierName`s now parse in member-access position via a new `expect_member_name` that covers all reserved words; (2) async arrow forms `async (a, b) => body`, `async x => body`, and `async () => body` parse via cover-grammar refinement on `async(args)` call expressions; (3) top-level `async function foo() { ... }` declarations dispatch to a new `parse_function_declaration_with_async` helper.
Abstract Syntax Tree definition for the Boa JavaScript engine.
Core Metrics
| ecma-syntax-cat | ecma-parse-cat | boa_ast | |
|---|---|---|---|
| Health Score | 40 | 49 | 66 |
| Total Downloads | 828 | 811 | 5.3M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 25 | 110 | 66 |
| Releases | 1 | 4 | 11 |
| Last Updated | 140d ago | 122d ago | 42d ago |
| Age | 4m | 4m | 3y 3m |
Health Breakdown
Technical Details
| ecma-syntax-cat | ecma-parse-cat | boa_ast | |
|---|---|---|---|
| Version | 0.1.0 | 0.3.0 | 0.22.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | Unlicense OR MIT |
| Dependencies | 1 | 3 | 10 |
| Crate Size | 33KB | 41KB | 113KB |
| Features | 0 | 0 | 3 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2024 | 2024 |
| MSRV | — | — | 1.91.0 |
| Owners | 1 | 1 | 2 (team) |
Links
Quick Verdict
- •boa_ast leads with a health score of 66/100, but none of the options score above 80.
- •ecma-parse-cat is depended on by 110 crates — strongest ecosystem trust.