mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Sorry about the thrash in advance! This removes the top level `forget` directory which adds unnecessary nesting to our repo Hopefully everything still works
forget_estree
This crate is a Rust representation of the ESTree format and popular extenions including JSX and (eventually) Flow and TypeScript.
This crate is intended as the main interchange format with outside code. A typical integration with Forget will look as follows:
- Host Compiler parses into the host AST format.
- Host Compiler converts into
forget_estree. - Host Compiler invokes Forget to compile the input, which (conceptually)
returns the resulting code in
forget_estreeformat. - Host Compiler convert back from
forget_estreeto its host AST format.
Because Forget is intended to support JavaScript-based toolchains, forget_estree is designed to support
accurate serialization to/from estree-compatible JSON. We may also support the Babel AST format
(a variant of ESTree) as well, depending on demand.