xo-parser: pref: + exprstatestack arg to exprstate::on_symbol()
This commit is contained in:
parent
847f8744b3
commit
00eaa55cc9
2 changed files with 5 additions and 3 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue