Expand description
Typed parse errors for the OxDock DSL (issue #143).
Beginners must always learn WHAT they did wrong: line and column,
what was found, what was expected, and a concrete example. A syntax
error must never surface as a bare unknown command: X.
String and file parsers populate line, column span, and source line
from pest spans. Token stream parsers (macro_input.rs) set
source_line to None and forward the compiler span instead, since
proc_macro2::Span carries coordinates but not source text.
Structs§
- Parse
Error - Typed parse error with structured diagnostics and a
backwards compatible
Displayrendering. - Span
Context - Location and diagnostic context threaded through lowering.
Enums§
- Parse
Error Kind - Machine readable classification of a parse failure.
Type Aliases§
- Parse
Result - Backwards compatible result alias for parser entrypoints.
Public functions return
ParseResultdirectly instead of erasing intoanyhow::Error, so downstream crates match statically.