xo-parser: simplify: + exprstate::on_expr split from on_exprir()

This commit is contained in:
Roland Conybeare 2024-08-01 13:23:16 +10:00
commit 514a2cb687
2 changed files with 71 additions and 10 deletions

View file

@ -223,6 +223,10 @@ namespace xo {
* forward instructions to parent parser
**/
void on_input(const token_type & tk, exprstatestack * p_stack, rp<Expression> * p_emit_expr);
/** update exprstate in response to a successfully-parsed subexpression **/
void on_expr(ref::brw<Expression> expr,
exprstatestack * p_stack,
rp<Expression> * p_emit_expr);
/** update exprstate in response to IR (intermediate representation)
* from nested parsing task
**/