xo-parser: prep: + exprstatestack arg to exprstate::on_colon()

This commit is contained in:
Roland Conybeare 2024-08-01 10:44:59 +10:00
commit cdd40a20c7
2 changed files with 3 additions and 3 deletions

View file

@ -243,7 +243,7 @@ namespace xo {
private:
expraction on_def(exprstatestack * p_stack);
expraction on_symbol(const token_type & tk, exprstatestack * p_stack);
expraction on_colon();
expraction on_colon(exprstatestack * p_stack);
expraction on_singleassign();
expraction on_f64(const token_type & tk);

View file

@ -387,7 +387,7 @@ namespace xo {
}
expraction
exprstate::on_colon() {
exprstate::on_colon(exprstatestack * /*p_stack*/) {
constexpr bool c_debug_flag = true;
scope log(XO_DEBUG(c_debug_flag));
@ -508,7 +508,7 @@ namespace xo {
return expraction();
case tokentype::tk_colon:
return this->on_colon();
return this->on_colon(p_stack);
case tokentype::tk_doublecolon:
case tokentype::tk_semicolon: