Skip to main content

Module parser

Module parser 

Source
Expand description

PEG-based parser that turns a .ferriorm schema string into a raw AST.

Uses the pest parser generator with the grammar defined in grammar.pest. The public entry point is parse, which returns an ferriorm_core::ast::SchemaFile on success or a ParseError on failure.

This module only handles syntactic parsing. Semantic validation (type resolution, constraint checking) is performed by crate::validator.

Enums§

Rule

Functions§

parse
Parse a .ferriorm schema string into an AST.