summaryrefslogtreecommitdiff
path: root/src/op.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-10 02:26:20 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-10 02:26:20 -0500
commitbf24b93818989bc10afb10554b236c16c47298c1 (patch)
tree244b8022107bb849454b739438bf1af050b6f145 /src/op.h
parentf49b7b2166b47c381ba251ccab503b0cde259b3e (diff)
downloadfork-ledger-bf24b93818989bc10afb10554b236c16c47298c1.tar.gz
fork-ledger-bf24b93818989bc10afb10554b236c16c47298c1.tar.bz2
fork-ledger-bf24b93818989bc10afb10554b236c16c47298c1.zip
Fixes to the value expression parser and evaluator
Diffstat (limited to 'src/op.h')
-rw-r--r--src/op.h6
1 files changed, 3 insertions, 3 deletions
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);