diff --git a/crates/oxc_parser/README.md b/crates/oxc_parser/README.md index c00b5cb6a94518..cfcc6cd9041f05 100644 --- a/crates/oxc_parser/README.md +++ b/crates/oxc_parser/README.md @@ -1,6 +1,7 @@ Oxc Parser for JavaScript and TypeScript Oxc's [`Parser`] has full support for + - The latest stable ECMAScript syntax - TypeScript - JSX and TSX @@ -16,16 +17,18 @@ let parser_return = Parser::new(&allocator, &source_text, source_type).parse(); ``` # Abstract Syntax Tree (AST) + Oxc's AST is located in a separate [`oxc_ast`] crate. You can find type definitions for AST nodes [here][`oxc_ast::ast`]. # Performance The following optimization techniques are used: -* AST is allocated in a memory arena ([bumpalo](https://docs.rs/bumpalo)) for fast AST drop -* [`oxc_span::Span`] offsets uses `u32` instead of `usize` -* Scope binding, symbol resolution and complicated syntax errors are not done in the parser, -they are delegated to the [semantic analyzer](https://docs.rs/oxc_semantic) + +- AST is allocated in a memory arena ([bumpalo](https://docs.rs/bumpalo)) for fast AST drop +- [`oxc_span::Span`] offsets uses `u32` instead of `usize` +- Scope binding, symbol resolution and complicated syntax errors are not done in the parser, + they are delegated to the [semantic analyzer](https://docs.rs/oxc_semantic)