summaryrefslogtreecommitdiff
path: root/src/expr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/expr.h')
-rw-r--r--src/expr.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/expr.h b/src/expr.h
index 508e521a..cebc7740 100644
--- a/src/expr.h
+++ b/src/expr.h
@@ -141,6 +141,13 @@ public:
return calc(*context);
}
+ scope_t * get_context() {
+ return context;
+ }
+ void set_context(scope_t * scope) {
+ context = scope;
+ }
+
bool is_constant() const;
bool is_function() const;