From bf24b93818989bc10afb10554b236c16c47298c1 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 10 Nov 2009 02:26:20 -0500 Subject: Fixes to the value expression parser and evaluator --- src/op.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/op.h') diff --git a/src/op.h b/src/op.h index 48d167b7..347eac1d 100644 --- a/src/op.h +++ b/src/op.h @@ -243,9 +243,6 @@ private: op->release(); } - static ptr_op_t new_node(kind_t _kind, ptr_op_t _left = NULL, - ptr_op_t _right = NULL); - ptr_op_t copy(ptr_op_t _left = NULL, ptr_op_t _right = NULL) const { ptr_op_t node(new_node(kind, _left, _right)); if (kind < TERMINALS) @@ -254,6 +251,9 @@ private: } public: + static ptr_op_t new_node(kind_t _kind, ptr_op_t _left = NULL, + ptr_op_t _right = NULL); + ptr_op_t compile(scope_t& scope, const int depth = 0); value_t calc(scope_t& scope, ptr_op_t * locus = NULL, const int depth = 0); -- cgit v1.2.3