xo-reader2: scaffold on_singleassign_token() in PSM
This commit is contained in:
parent
7d33440ecb
commit
a3f5b12955
24 changed files with 139 additions and 1 deletions
|
|
@ -543,6 +543,28 @@ namespace xo {
|
|||
this->get_expect_str());
|
||||
}
|
||||
|
||||
void
|
||||
DDefineSsm::on_singleassign_token(const Token & tk,
|
||||
ParserStateMachine * p_psm)
|
||||
{
|
||||
scope log(XO_DEBUG(true), xtag("defstate", defstate_));
|
||||
|
||||
if ((defstate_ == defexprstatetype::def_2)
|
||||
|| (defstate_ == defexprstatetype::def_4))
|
||||
{
|
||||
this->defstate_ = defexprstatetype::def_5;
|
||||
|
||||
// TODO: DExpectExprSsm::start(...)
|
||||
log && log("STUB: DExpectExprSsm not implemented");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
p_psm->illegal_input_on_token("DDefineSsm::on_singleassign_token",
|
||||
tk,
|
||||
this->get_expect_str());
|
||||
}
|
||||
|
||||
bool
|
||||
DDefineSsm::pretty(const ppindentinfo & ppii) const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue