summaryrefslogtreecommitdiff
path: root/src/expression.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/expression.h')
-rw-r--r--src/expression.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/expression.h b/src/expression.h
index acbd6aa..2919b78 100644
--- a/src/expression.h
+++ b/src/expression.h
@@ -3,13 +3,14 @@
#include <string>
#include <vector>
+#include "value.h"
class Expression
{
public:
std::vector<Expression*> children;
- class Value *const_value;
+ const Value const_value;
std::string var_name;
std::string call_funcname;
@@ -31,6 +32,7 @@ public:
std::string type;
Expression();
+ Expression(const Value &val);
~Expression();
Value evaluate(const class Context *context) const;
contact: Jan Huwald // Impressum