aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/include/expression.hpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-03-23 21:06:23 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-03-23 21:06:23 +0000
commit3a8cbbd0c0b9b8bc80d4346d98a305671f0869a9 (patch)
tree4cb81cea231e243b003065d705bf592a62132aa1 /c_compiler/include/expression.hpp
parent64d1100ea5a2f749db3a635d5fb2a688a551ecb7 (diff)
downloadCompiler-3a8cbbd0c0b9b8bc80d4346d98a305671f0869a9.tar.gz
Compiler-3a8cbbd0c0b9b8bc80d4346d98a305671f0869a9.zip
Making hierarchy better
Diffstat (limited to 'c_compiler/include/expression.hpp')
-rw-r--r--c_compiler/include/expression.hpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/c_compiler/include/expression.hpp b/c_compiler/include/expression.hpp
index 0ded5c2..57c24ef 100644
--- a/c_compiler/include/expression.hpp
+++ b/c_compiler/include/expression.hpp
@@ -30,9 +30,7 @@ public:
virtual int postfixStackPosition(VariableStackBindings bindings) const;
virtual void setPostfixExpression(Expression *postfix_expression);
virtual std::string id() const;
- virtual ExpressionPtr getLhs() const;
- virtual ExpressionPtr getRhs() const;
-
+
void linkExpression(Expression* next_expression);
ExpressionPtr nextExpression() const;
};
@@ -51,8 +49,9 @@ public:
virtual int constantFold() const;
virtual void expressionDepth(unsigned &depth_count) const;
- virtual ExpressionPtr getLhs() const;
- virtual ExpressionPtr getRhs() const;
+
+ ExpressionPtr getLhs() const;
+ ExpressionPtr getRhs() const;
void evaluateExpression(VariableStackBindings bindings, unsigned &label_count) const;
};