xo-reader2: + on_semicolon_token() method in SyntaxStateMachine
This commit is contained in:
parent
5bd78b8f4e
commit
0163c16771
32 changed files with 166 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue