Skip to main content

parse_program

Function parse_program 

Source
pub fn parse_program(input: &str) -> Result<Program>
Expand description

Parse an XLOG program string into an AST Program.

Simple ground facts (p(1, "a", sym, X, _).) take a hand-written fast path (see [crate::fact_fast_path]); everything else goes through pest. The result is identical to parse_program_reference, including errors.