Skip to main content

Crate rex_ast

Crate rex_ast 

Source
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§

app
assert_expr_eq
b
d
f
i
ite
l
lam
let_in
s
tup
u
v

Structs§

ClassDecl
ClassMethodSig
CompilationUnit
DeclareFnDecl
FnDecl
Id
ImportDecl
ImportItem
InstanceDecl
InstanceMethodImpl
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.
TypeConstraint
TypeDecl
TypeVariant
Var

Enums§

Decl
Expr
ImportClause
ImportPath
NameRef
Pattern
TypeExpr

Traits§

Spanned

Type Aliases§

Scope