xo-reader2: scaffold on_singleassign_token() in PSM
This commit is contained in:
parent
3cbd4224b1
commit
29609e6dfd
25 changed files with 142 additions and 4 deletions
|
|
@ -153,6 +153,10 @@ namespace xo {
|
|||
this->on_colon_token(tk);
|
||||
break;
|
||||
|
||||
case tokentype::tk_singleassign:
|
||||
this->on_singleassign_token(tk);
|
||||
break;
|
||||
|
||||
// all the not-yet handled cases
|
||||
case tokentype::tk_invalid:
|
||||
case tokentype::tk_bool:
|
||||
|
|
@ -173,7 +177,6 @@ namespace xo {
|
|||
case tokentype::tk_comma:
|
||||
case tokentype::tk_doublecolon:
|
||||
case tokentype::tk_semicolon:
|
||||
case tokentype::tk_singleassign:
|
||||
case tokentype::tk_assign:
|
||||
case tokentype::tk_yields:
|
||||
case tokentype::tk_plus:
|
||||
|
|
@ -229,6 +232,14 @@ namespace xo {
|
|||
stack_->top().on_colon_token(tk, this);
|
||||
}
|
||||
|
||||
void
|
||||
ParserStateMachine::on_singleassign_token(const Token & tk)
|
||||
{
|
||||
scope log(XO_DEBUG(debug_flag_), xtag("tk", tk));
|
||||
|
||||
stack_->top().on_singleassign_token(tk, this);
|
||||
}
|
||||
|
||||
void
|
||||
ParserStateMachine::capture_error(std::string_view ssm_name,
|
||||
const DString * errmsg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue