Expand description
Parser for XLOG programs using Pest
This module parses XLOG source text into AST structures.
It uses the Pest parser generator with a grammar defined in grammar.pest.
Structs§
- Fast
Parse Stats - How much of a parse the fact fast path handled.
- Xlog
Parser - Pest-based parser for XLOG Datalog syntax.
Enums§
Functions§
- parse_
atom - Parse a single atom (low-level, returns pest pairs)
- parse_
program - Parse an XLOG program string into an AST Program.
- parse_
program_ reference - Pure-pest reference parser: the whole source through the grammar, no fast
path.
parse_programis specified to be observationally equal to this. - parse_
program_ with_ stats parse_programplus fast-path statistics (for probes and tests).- parse_
statement - Parse a single statement (low-level, returns pest pairs)
Type Aliases§
- Parse
Result - Parse result containing the parsed pairs (for low-level access)