Skip to main content

Module parser

Module parser 

Source
Expand description

Parser module: public API and re-exports.

Modules§

ast
AST – Abstract Syntax Tree for Gel syntax Represents the parsed Gel document structure
core
Core parser state (reserved for future caching / streaming context).
json
JSON output generator - converts AST to JSON
lexer
Lexer – Generic tokenization (core Gel + identifiers) using nom.
syntax
Main parser – converts token stream into AST.
validate
Semantic validation pass – runs after parsing, before execution. Collects Diagnostic entries for issues like duplicate grammars, undefined references, and invalid regex patterns.
xml
XML output generator - converts AST to XML
yaml
YAML output generator - converts AST to YAML

Structs§

Parser
High-level parser that tokenizes Gel source, builds an AST, and serializes it to the selected OutputFormat.

Enums§

OutputFormat
Syntax-level output format for the static parser (AST → string).