diff options
Diffstat (limited to 'src/op.h')
-rw-r--r-- | src/op.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |