xo-reader2: fix clearing result in SchematikaReader

This commit is contained in:
Roland Conybeare 2026-01-23 16:34:33 -05:00
commit b7a813ec07
4 changed files with 33 additions and 0 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.