Skip to content

Commit

Permalink
Update book/src/contributing/architecture.md
Browse files Browse the repository at this point in the history
Co-authored-by: Franziskus Kiefer <[email protected]>
  • Loading branch information
W95Psp and franziskuskiefer committed Nov 28, 2024
1 parent bb3d431 commit 04d7599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/src/contributing/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The frontend is responsible for extracting and exporting Rust code's abstract sy

### `hax-frontend-exporter` Library

This library mirrors the internal types of the Rust compiler (`rustc`) that constitute the **HIR** (High-Level Intermediate Representation), **THIR** (Typed High-Level Intermediate Representation), and **MIR** (Mid-Level Intermediate Representation) ASTs. It extends them with additional information such as attributes, trait implementations, and removes IDs indirections.
This library mirrors the internal types of the Rust compiler (`rustc`) that constitute the **HIR** (High-Level Intermediate Representation), **THIR** (Typed High-Level Intermediate Representation), and **MIR** (Mid-Level Intermediate Representation) ASTs. It extends them with additional information such as attributes, trait implementations, and removes ID indirections.

**`SInto` Trait:** The library defines an entry point for translating a given `rustc` value to its mirrored hax version using the `SInto` trait (stateful `into`). For a value `x` of type `T` from `rustc`, if `T` is mirrored by hax, then `x.sinto(s)` produces an augmented and simplified "hax-ified" AST for `x`. Here, `s` represents the state holding information about the translation process.

Expand Down

0 comments on commit 04d7599

Please sign in to comment.