Skip to main content

Module parser

Module parser 

Source
Expand description

Pest-based parser that converts .intent source text into a typed AST.

The grammar is defined in grammar/intent.pest. This module wraps the generated pest parser and transforms pest Pairs into [ast] nodes.

Structs§

IntentParser
The pest-generated parser. Grammar is loaded at compile time from the workspace-relative path.
ParseError
Parse error with human-readable message and source location.

Enums§

Rule

Functions§

parse_file
Parse a complete .intent source string into an AST File.