Skip to main content

Module parser

Module parser 

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

FastParseStats
How much of a parse the fact fast path handled.
XlogParser
Pest-based parser for XLOG Datalog syntax.

Enums§

Rule

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_program is specified to be observationally equal to this.
parse_program_with_stats
parse_program plus fast-path statistics (for probes and tests).
parse_statement
Parse a single statement (low-level, returns pest pairs)

Type Aliases§

ParseResult
Parse result containing the parsed pairs (for low-level access)