xo-reader2: bugfix: prior refactor requires switch remodel on_token

This commit is contained in:
Roland Conybeare 2026-01-25 10:47:28 -05:00
commit 4b4c69cfed
5 changed files with 43 additions and 42 deletions

View file

@ -500,43 +500,43 @@ namespace xo {
switch (tk.tk_type()) {
case tokentype::tk_symbol:
this->on_symbol_token(tk, p_psm);
break;
return;
case tokentype::tk_def:
this->on_def_token(tk, p_psm);
break;
return;
case tokentype::tk_if:
this->on_if_token(tk, p_psm);
break;
return;
case tokentype::tk_colon:
this->on_colon_token(tk, p_psm);
break;
return;
case tokentype::tk_singleassign:
this->on_singleassign_token(tk, p_psm);
break;
return;
case tokentype::tk_string:
this->on_string_token(tk, p_psm);
break;
return;
case tokentype::tk_f64:
this->on_f64_token(tk, p_psm);
break;
return;
case tokentype::tk_i64:
this->on_i64_token(tk, p_psm);
break;
return;
case tokentype::tk_bool:
this->on_bool_token(tk, p_psm);
break;
return;
case tokentype::tk_semicolon:
this->on_semicolon_token(tk, p_psm);
break;
return;
// all the not-yet handled cases
case tokentype::tk_invalid:
@ -569,12 +569,11 @@ namespace xo {
case tokentype::tk_in:
case tokentype::tk_end:
case tokentype::N:
break;
p_psm->illegal_input_on_token("DDefineSsm::on_token",
tk,
this->get_expect_str());
return;
}
p_psm->illegal_input_on_token("DDefineSsm::on_token",
tk,
this->get_expect_str());
}
void