diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-10 02:26:20 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-10 02:26:20 -0500 |
commit | bf24b93818989bc10afb10554b236c16c47298c1 (patch) | |
tree | 244b8022107bb849454b739438bf1af050b6f145 /src/op.h | |
parent | f49b7b2166b47c381ba251ccab503b0cde259b3e (diff) | |
download | fork-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.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); |