xo-reader2: top-level string literal + on_string_token() in SSM
This commit is contained in:
parent
adeef936c4
commit
b6ff615057
32 changed files with 189 additions and 1 deletions
|
|
@ -183,6 +183,10 @@ namespace xo {
|
|||
this->on_singleassign_token(tk);
|
||||
break;
|
||||
|
||||
case tokentype::tk_string:
|
||||
this->on_string_token(tk);
|
||||
break;
|
||||
|
||||
case tokentype::tk_f64:
|
||||
this->on_f64_token(tk);
|
||||
break;
|
||||
|
|
@ -201,7 +205,6 @@ namespace xo {
|
|||
|
||||
// all the not-yet handled cases
|
||||
case tokentype::tk_invalid:
|
||||
case tokentype::tk_string:
|
||||
case tokentype::tk_leftparen:
|
||||
case tokentype::tk_rightparen:
|
||||
case tokentype::tk_leftbracket:
|
||||
|
|
@ -278,6 +281,14 @@ namespace xo {
|
|||
stack_->top().on_singleassign_token(tk, this);
|
||||
}
|
||||
|
||||
void
|
||||
ParserStateMachine::on_string_token(const Token & tk)
|
||||
{
|
||||
scope log(XO_DEBUG(debug_flag_), xtag("tk", tk));
|
||||
|
||||
stack_->top().on_string_token(tk, this);
|
||||
}
|
||||
|
||||
void
|
||||
ParserStateMachine::on_f64_token(const Token & tk)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue