xo-reader: refactor: parserstatemachine w/ exprstate.on_lambda_token
This commit is contained in:
parent
e5dc8d14d4
commit
8cae38817b
7 changed files with 22 additions and 16 deletions
|
|
@ -4,6 +4,7 @@
|
|||
*/
|
||||
|
||||
#include "parser.hpp"
|
||||
#include "parserstatemachine.hpp"
|
||||
#include "define_xs.hpp"
|
||||
#include "exprseq_xs.hpp"
|
||||
#include "xo/expression/DefineExpr.hpp"
|
||||
|
|
@ -50,7 +51,9 @@ namespace xo {
|
|||
|
||||
rp<Expression> retval;
|
||||
|
||||
xs_stack_.top_exprstate().on_input(tk, &xs_stack_, &retval);
|
||||
parserstatemachine psm(&xs_stack_, &retval);
|
||||
|
||||
xs_stack_.top_exprstate().on_input(tk, &psm);
|
||||
|
||||
log && log(xtag("retval", retval));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue