Skip to main content

Module parser

Module parser 

Source
Expand description

The runtime input-parser interpreter (§7).

Evaluates a compiled ParserPlan against the process-input buffer (or a Text value), allocating GC results (Int, Float, Byte, Char, source-slice Text, Vec, Grid, Record, Tuple, enum values) and raising FaultKind::ParseFailed on mismatch.

The plan type and global arena live in praxis-input-parser; this interpreter looks up a plan by its [PlanId] and walks its node arena.

The arena is not #[repr(C)]. It is ordinary Rust enums and slices, and nothing here crosses an FFI boundary — only the plan id is a JIT immediate. praxis_input_parser::plan’s own doc is the authority on its layout.

Functions§

run_plan_by_id
Run the parser plan named by raw_id against input, returning the parsed result or None on failure (a value that names no plan → None; parse mismatch → sets ParseFailed fault + None).