Skip to main content

Module parser

Module parser 

Source

Structs§

Expr
MatchArm
Stmt
VariantDecl
One variant of an enum declaration.

Enums§

ArrayRest
What ..rest does at the tail of an array pattern.
AssignOp
AssignTarget
BinOp
ExprKind
LiteralPattern
Pattern
A pattern appears in match arms (phase 4 introduces this; future phases may reuse it in let destructuring and fn params). Structurally mirrors the runtime Value enum so each variant’s matcher reads as “does this value fit here?”.
StmtKind
UnaryOp
VariantKind
What shape a variant’s payload takes.
VariantPatternPayload
VariantPayload
Runtime-side payload at a T::Variant(...) construction site.

Functions§

count_instructions
Count instructions in a list of statements (AST-based, format-independent).
fmt_token
parse