xo-reader2: fix clearing result in SchematikaReader

This commit is contained in:
Roland Conybeare 2026-01-23 16:34:33 -05:00
commit 0fb0f7a1bf
8 changed files with 41 additions and 6 deletions

View file

@ -56,6 +56,9 @@ namespace xo {
/** consume input @p input_cstr **/
const ReaderResult & read_expr(span_type input_span, bool eof);
/** reset @ref result_ to nominal value **/
void reset_result();
/** reset to known starting point after encountering an error.
* - remainder of stashed current line.
* Necesary for well-formatted error reporting.