xo-expression: generalize envframestack + handle explicit lm retturn
This commit is contained in:
parent
483ce15988
commit
5c7b756bd1
15 changed files with 112 additions and 74 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