Skip to main content

Module syntax

Module syntax 

Source
Expand description

Graphcal Syntax: lexer, parser, and AST definitions.

Modules§

ast
attribute
Attribute names recognized by the language.
comments
desugar
Syntactic sugar desugaring pass (issue #481).
dimension
lexer
module_resolve
Module-aware symbol tables backing HIR name resolution.
names
Typed name atoms and namespace-specific name wrappers.
nat
Typed representation of type-level Nat arithmetic.
non_empty
Small semantic helper for homogeneous non-empty sequences.
parser
phase
AST phase parameter (issue: phased AST split).
span
token
Lexical token model.
visitor
Visitor traits for recursive traversal of ExprKind trees.

Functions§

named_source
Build a miette::NamedSource from (name, source).