xo-expression: generalize envframestack + handle explicit lm retturn

This commit is contained in:
Roland Conybeare 2025-07-28 13:16:09 -04:00
commit 44f463e359
9 changed files with 55 additions and 43 deletions

View file

@ -219,6 +219,12 @@ namespace xo {
**/
const parser_result & include_token(const token_type & tk);
/** reset parsed result expression; use using return value from
* @ref include_token. Complicating api here to avoid copying parser_result
* on each token
**/
void reset_result();
/** reset to starting parsing state.
* use this after encountering an error, to avoid cascade of
* spurious secondary errors.. particularly important when