xo-reader: parserstatemachine -> consolidate on_symbol() args
This commit is contained in:
parent
370722b086
commit
355f73b2a1
9 changed files with 11 additions and 23 deletions
|
|
@ -59,15 +59,14 @@ namespace xo {
|
|||
|
||||
void
|
||||
define_xs::on_symbol(const std::string & symbol_name,
|
||||
exprstatestack * p_stack,
|
||||
rp<Expression> * p_emit_expr)
|
||||
parserstatemachine * p_psm)
|
||||
{
|
||||
if (this->defxs_type_ == defexprstatetype::def_1) {
|
||||
this->defxs_type_ = defexprstatetype::def_2;
|
||||
this->def_expr_->assign_lhs_name(symbol_name);
|
||||
return;
|
||||
} else {
|
||||
exprstate::on_symbol(symbol_name, p_stack, p_emit_expr);
|
||||
exprstate::on_symbol(symbol_name, p_psm);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue