xo-reader2: + on_semicolon_token() method in SyntaxStateMachine

This commit is contained in:
Roland Conybeare 2026-01-22 15:32:12 -05:00
commit 0163c16771
32 changed files with 166 additions and 1 deletions

View file

@ -167,6 +167,10 @@ namespace xo {
this->on_f64_token(tk);
break;
case tokentype::tk_semicolon:
this->on_semicolon_token(tk);
break;
// all the not-yet handled cases
case tokentype::tk_invalid:
case tokentype::tk_bool:
@ -185,7 +189,6 @@ namespace xo {
case tokentype::tk_dot:
case tokentype::tk_comma:
case tokentype::tk_doublecolon:
case tokentype::tk_semicolon:
case tokentype::tk_assign:
case tokentype::tk_yields:
case tokentype::tk_plus:
@ -257,6 +260,14 @@ namespace xo {
stack_->top().on_f64_token(tk, this);
}
void
ParserStateMachine::on_semicolon_token(const Token & tk)
{
scope log(XO_DEBUG(debug_flag_), xtag("tk", tk));
stack_->top().on_semicolon_token(tk, this);
}
void
ParserStateMachine::capture_error(std::string_view ssm_name,
const DString * errmsg)