Skip to main content

Module parser

Module parser 

Source
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§

ShapeParser

Enums§

Rule

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