xo-parser: pref: + exprstatestack arg to exprstate::on_symbol()

This commit is contained in:
Roland Conybeare 2024-08-01 10:43:33 +10:00
commit 00eaa55cc9
2 changed files with 5 additions and 3 deletions

View file

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

View file

@ -313,7 +313,9 @@ namespace xo {
} }
expraction expraction
exprstate::on_symbol(const token_type & tk) { exprstate::on_symbol(const token_type & tk,
exprstatestack * /*p_stack*/)
{
constexpr bool c_debug_flag = true; constexpr bool c_debug_flag = true;
scope log(XO_DEBUG(c_debug_flag)); scope log(XO_DEBUG(c_debug_flag));
@ -488,7 +490,7 @@ namespace xo {
return expraction(); return expraction();
case tokentype::tk_symbol: case tokentype::tk_symbol:
return this->on_symbol(tk); return this->on_symbol(tk, p_stack);
case tokentype::tk_leftparen: case tokentype::tk_leftparen: