xo-reader2 stack: top-level lambda w/ apply parses

This commit is contained in:
Roland Conybeare 2026-02-05 15:45:40 -05:00
commit dbf251be6f
2 changed files with 17 additions and 1 deletions

View file

@ -120,12 +120,18 @@ namespace xo {
**/
void _do_eval_lambda_op();
/** evaluate a variable expression
/** evaluate variable expression (definition)
* Require:
* - expression in @ref expr_
**/
void _do_eval_variable_op();
/** evaluate a variable reference (use after definition)
* Require:
* - expression in @ref expr_
**/
void _do_eval_varref_op();
/** evaluate an apply expression
* Require:
* - expression in @ref expr_

View file

@ -167,6 +167,9 @@ namespace xo {
case exprtype::variable:
_do_eval_variable_op();
break;
case exprtype::varref:
_do_eval_varref_op();
break;
case exprtype::apply:
_do_eval_apply_op();
break;
@ -210,6 +213,13 @@ namespace xo {
assert(false);
}
void
VirtualSchematikaMachine::_do_eval_varref_op()
{
// not implemented
assert(false);
}
void
VirtualSchematikaMachine::_do_eval_apply_op()
{