Skip to main content

Crate harn_parser

Crate harn_parser 

Source

Re-exports§

pub use typechecker::format_type;
pub use typechecker::DiagnosticSeverity;
pub use typechecker::TypeChecker;
pub use typechecker::TypeDiagnostic;

Modules§

diagnostic
typechecker

Structs§

DictEntry
DictPatternField
A field in a dict destructuring pattern.
EnumVariant
An enum variant declaration.
InterfaceMethod
An interface method signature.
ListPatternElement
An element in a list destructuring pattern.
MatchArm
Parser
Recursive descent parser for Harn.
ShapeField
A field in a dict shape type.
Spanned
A node wrapped with source location information.
StructField
A struct field declaration.
TypedParam
A parameter with an optional type annotation.

Enums§

BindingPattern
A binding pattern for destructuring in let/var/for-in.
Node
AST nodes for the Harn language.
ParserError
Parser errors.
TypeExpr
A type annotation (optional, for runtime checking).

Functions§

spanned
Helper to wrap a node with a span.

Type Aliases§

SNode
A spanned AST node — the primary unit throughout the compiler.