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 8b63fbaaa2
5 changed files with 43 additions and 42 deletions

View file

@ -167,43 +167,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:
@ -224,7 +224,10 @@ namespace xo {
case tokentype::tk_yields:
case tokentype::tk_plus:
case tokentype::tk_minus:
break;
case tokentype::tk_star:
this->on_operator_token(tk, p_psm);
return;
case tokentype::tk_slash:
case tokentype::tk_cmpeq:
case tokentype::tk_cmpne: