aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/include/expression.hpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-03-19 19:36:49 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-03-19 19:36:49 +0000
commit5bb277cc67c7c3fa8fa3024f1ed3da81a71636e2 (patch)
tree62e2178c79566d138f0861799e0996efe75f97ad /c_compiler/include/expression.hpp
parent1e68e77f3119c2558aceb2837eb1e25111eedab9 (diff)
downloadCompiler-5bb277cc67c7c3fa8fa3024f1ed3da81a71636e2.tar.gz
Compiler-5bb277cc67c7c3fa8fa3024f1ed3da81a71636e2.zip
Finished better expressions
Diffstat (limited to 'c_compiler/include/expression.hpp')
-rw-r--r--c_compiler/include/expression.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/c_compiler/include/expression.hpp b/c_compiler/include/expression.hpp
index 9a22ce7..313d678 100644
--- a/c_compiler/include/expression.hpp
+++ b/c_compiler/include/expression.hpp
@@ -25,6 +25,7 @@ public:
virtual void print() const;
virtual void printXml() const;
virtual void countArguments(unsigned& argument_count) const;
+ virtual void expressionDepth(unsigned& depth_count) const;
virtual int postfixStackPosition(VariableStackBindings bindings) const;
virtual void setPostfixExpression(Expression* postfix_expression);
@@ -46,6 +47,7 @@ public:
virtual VariableStackBindings printAsm(VariableStackBindings bindings, unsigned& label_count) const = 0;
+ virtual void expressionDepth(unsigned& depth_count) const;
void evaluateExpression(VariableStackBindings bindings, unsigned& label_count) const;
};