Expand description
AST data structures for Rex.
This crate is intentionally “dumb data” first: keep it easy to read, print, and transform. Anything with complicated control flow generally belongs in a later phase (parser, type checker, engine).
Macros§
Structs§
- Class
Decl - Class
Method Sig - Compilation
Unit - Declare
FnDecl - FnDecl
- Id
- Import
Decl - Import
Item - Instance
Decl - Instance
Method Impl - Position
- A Position represents an arbitrary source position. It includes the line number, and column number.
- Span
- A Span represents an arbitrary source range. It includes the beginning and ending Positions.
- Symbol
- An interned Rex identifier.
- Type
Constraint - Type
Decl - Type
Variant - Var