aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/include/expression.hpp
diff options
context:
space:
mode:
authorymherklotz <ymherklotz@gmail.com>2017-03-10 18:53:29 +0000
committerymherklotz <ymherklotz@gmail.com>2017-03-10 18:53:29 +0000
commitfc4486443f1af75526306377437cb82c2c9f37ac (patch)
treed1058fc594c49b7cb4064f34855464d9fc3ecb89 /c_compiler/include/expression.hpp
parent7a61349a09b4db96794a2a90d2d488f020885442 (diff)
downloadCompiler-fc4486443f1af75526306377437cb82c2c9f37ac.tar.gz
Compiler-fc4486443f1af75526306377437cb82c2c9f37ac.zip
Passing all my tests for now
Diffstat (limited to 'c_compiler/include/expression.hpp')
-rw-r--r--c_compiler/include/expression.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/c_compiler/include/expression.hpp b/c_compiler/include/expression.hpp
index d77d9d5..2476de1 100644
--- a/c_compiler/include/expression.hpp
+++ b/c_compiler/include/expression.hpp
@@ -39,6 +39,18 @@ public:
};
+class AdditiveExpression : public OperationExpression
+{
+private:
+ std::string operand;
+
+public:
+ AdditiveExpression(Expression* _lhs, const std::string& _operand, Expression* _rhs);
+
+ virtual VariableStackBindings printasm(VariableStackBindings bindings) const;
+};
+
+
class Identifier : public Expression
{
private: