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
EnumVariant
An enum variant declaration.
InterfaceMethod
An interface method signature.
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§

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.