summaryrefslogtreecommitdiff
path: root/src/op.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-07 05:38:13 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-07 05:38:13 -0600
commitb17b6cd9d42eda5db0ecf69d7fdef7f4e64d6cb1 (patch)
tree9d02d267d04810102cc059315a2940a914748a77 /src/op.h
parent1e18536a8c6e3e83257687ec4588ddba5fcb890b (diff)
downloadfork-ledger-b17b6cd9d42eda5db0ecf69d7fdef7f4e64d6cb1.tar.gz
fork-ledger-b17b6cd9d42eda5db0ecf69d7fdef7f4e64d6cb1.tar.bz2
fork-ledger-b17b6cd9d42eda5db0ecf69d7fdef7f4e64d6cb1.zip
Fixed parameter and argument scoping for O_CALL nodes
Diffstat (limited to 'src/op.h')
-rw-r--r--src/op.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/op.h b/src/op.h
index 8b914311..c93f218b 100644
--- a/src/op.h
+++ b/src/op.h
@@ -69,6 +69,7 @@ private:
public:
enum kind_t {
// Constants
+ PLUG,
VALUE,
IDENT,
@@ -274,7 +275,8 @@ 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);
+ ptr_op_t compile(scope_t& scope, const int depth = 0,
+ scope_t * param_scope = NULL);
value_t calc(scope_t& scope, ptr_op_t * locus = NULL,
const int depth = 0);