xo-reader: wip: add environment-frame stack to psm [not used]

This commit is contained in:
Roland Conybeare 2024-08-19 17:34:20 -04:00
commit 3b57a1f142
2 changed files with 13 additions and 2 deletions

View file

@ -33,6 +33,7 @@ namespace xo {
parser::begin_translation_unit() {
/* note: not using emit expr here */
parserstatemachine psm(&xs_stack_,
&env_stack_,
nullptr /*p_emit_expr*/);
exprseq_xs::start(&psm);
@ -55,7 +56,7 @@ namespace xo {
rp<Expression> retval;
parserstatemachine psm(&xs_stack_, &retval);
parserstatemachine psm(&xs_stack_, &env_stack_, &retval);
xs_stack_.top_exprstate().on_input(tk, &psm);