Expand description
Parser module for Shape language
This module contains the complete parser implementation using Pest. It’s organized into submodules for different language constructs.
Re-exports§
pub use expressions::parse_expression;pub use items::parse_pattern;pub use items::parse_variable_decl;pub use types::parse_type_annotation;
Modules§
- data_
sources - Parser for data source and query declarations
- docs
- expressions
- Expression parsing module
- extensions
- AST parser for language extensions
- functions
- Function and annotation parsing for Shape
- items
- Item parsing for Shape
- modules
- Module system parsing for Shape
- preprocessor
- queries
- Query parsing module for Shape
- resilient
- Resilient parser for Shape language.
- statements
- Statement parsing for Shape
- stream
- Parser for stream definitions
- string_
literals - String literal decoding helpers.
- time
- Time-related parsing module
- types
- Type annotation parsing for Shape
Structs§
Enums§
Functions§
- pair_
span - Extract a lightweight Span from a Pest pair for AST nodes
- parse_
expression_ str - Parse a single expression from a string
- parse_
item - Parse an individual item (pattern, query, assignment, or expression)
- parse_
program - Parse a complete Shape program