xo-reader2: + on_parsed_expression_with_semicolon + DefineSsm works

This commit is contained in:
Roland Conybeare 2026-01-22 17:15:05 -05:00
commit c33cfd7ae7
33 changed files with 419 additions and 18 deletions

View file

@ -102,6 +102,22 @@ namespace xo {
**/
void on_parsed_typedescr(TypeDescr td);
/** update state to respond to parsed expression @p expr
* (from nested parsing state)
**/
void on_parsed_expression(obj<AExpression> expr);
/** update state to respond to parsed expression @p expr
* (from nested parsing state), with trailing semicolon.
*
* Need to distinguish cases like:
* 6 // ; allowed
* f(6 // ) allowed ; forbidden
* 6 + // ) forbidden ; forbidden
*
**/
void on_parsed_expression_with_semicolon(obj<AExpression> expr);
/** update state to respond to input token @p tk.
* record output (if any) in @ref result_
**/