diff --git a/include/xo/parser/parser.hpp b/include/xo/parser/parser.hpp index 4d45f6e7..a01b1da2 100644 --- a/include/xo/parser/parser.hpp +++ b/include/xo/parser/parser.hpp @@ -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 * p_emit_expr); diff --git a/src/parser/parser.cpp b/src/parser/parser.cpp index a1ee3ae2..905abfea 100644 --- a/src/parser/parser.cpp +++ b/src/parser/parser.cpp @@ -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