Skip to main content

Module expr

Module expr 

Source
Expand description

The Expr graph: the checked-form representation of source.

The kernel defines the expression graph, number literals, quote modes, and source-origin tracking; general-purpose codecs in library crates round-trip every expression through this shared graph.

Structs§

LocatedExpr
An Expr paired with its optional source Origin.
LocatedExprTree
A located expression together with its located children.
NumberLiteral
A number literal: a domain symbol plus its canonical textual form.
Origin
Source provenance of an expression: which codec, source, span, and trivia.
SourceId
Opaque identifier of a registered source.
SourceRegistry
A store mapping each SourceId to its raw source bytes.
Span
A half-open byte range [start, end) within a source.

Enums§

CanonicalKey
A normalized, comparable key derived from an Expr.
Expr
The codec-neutral expression graph: the checked form of source.
QuoteMode
The quoting mode attached to a Expr::Quote form.
Trivia
Non-semantic source trivia preserved alongside an expression.