Error recovery

This commit is contained in:
2026-05-14 19:07:36 +02:00
parent 23f726fd41
commit ef7ccc5aed
2 changed files with 15 additions and 1 deletions
+6
View File
@@ -491,6 +491,12 @@ impl From<pest::iterators::Pair<'_, Rule>> for Statement {
.collect(),
),
Rule::unexpected_statement => {
let pos = pair.as_span().start_pos().line_col();
panic!("({}:{}) Invalid Statement: {}", pos.0, pos.1, pair.as_str())
}
_ => unimplemented!("{rule:#?}"),
}
}