xo-parser: simplify: exprstate::on_def drop retval
This commit is contained in:
parent
909101cd8d
commit
129b5d9258
2 changed files with 2 additions and 3 deletions
|
|
@ -232,7 +232,7 @@ namespace xo {
|
|||
void print(std::ostream & os) const;
|
||||
|
||||
private:
|
||||
expraction on_def(exprstatestack * p_stack);
|
||||
void on_def(exprstatestack * p_stack);
|
||||
expraction on_symbol(const token_type & tk,
|
||||
exprstatestack * p_stack,
|
||||
rp<Expression> * p_emit_expr);
|
||||
|
|
|
|||
|
|
@ -245,7 +245,7 @@ namespace xo {
|
|||
}
|
||||
}
|
||||
|
||||
expraction
|
||||
void
|
||||
exprstate::on_def(exprstatestack * p_stack) {
|
||||
constexpr bool c_debug_flag = true;
|
||||
scope log(XO_DEBUG(c_debug_flag));
|
||||
|
|
@ -270,7 +270,6 @@ namespace xo {
|
|||
* def pi : f64 = 3.14159265
|
||||
* def sq(x : f64) -> f64 { (x * x) }
|
||||
*/
|
||||
return expraction::keep();
|
||||
}
|
||||
|
||||
expraction
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue