xo-expression: generalize envframestack + handle explicit lm retturn
This commit is contained in:
parent
3c0dffe019
commit
44f463e359
9 changed files with 55 additions and 43 deletions
|
|
@ -63,6 +63,10 @@ namespace xo {
|
|||
log && log(xtag("outcome", "victory!"),
|
||||
xtag("expr", parser_result.result_expr()));
|
||||
|
||||
rp<Expression> result_expr = parser_result.result_expr();
|
||||
|
||||
this->parser_.reset_result();
|
||||
|
||||
/* token completes an expression -> victory */
|
||||
return reader_result(parser_result.result_expr(),
|
||||
expr_span, parser_.stack_size(), reader_error());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue