xo-reader: simplify expect_type_xs.start() using psm
This commit is contained in:
parent
0b0c424b84
commit
e74e55832e
4 changed files with 5 additions and 9 deletions
|
|
@ -112,12 +112,10 @@ namespace xo {
|
|||
|
||||
//constexpr const char * self_name = "define_xs::on_colon_token";
|
||||
|
||||
auto p_stack = p_psm->p_stack_;
|
||||
|
||||
if (this->defxs_type_ == defexprstatetype::def_2) {
|
||||
this->defxs_type_ = defexprstatetype::def_3;
|
||||
|
||||
expect_type_xs::start(p_stack);
|
||||
expect_type_xs::start(p_psm);
|
||||
} else {
|
||||
exprstate::on_colon_token(tk, p_psm);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue