diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-15 17:39:50 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-15 17:39:50 +0000 |
commit | 667a766552e2002ae7cf7969d78aaeba906d3759 (patch) | |
tree | 2d9fc3ffae5485cbf8ff250eb6e77ba01e653f60 /c_compiler/include/bindings.hpp | |
parent | 10a1fc0bc485cb0ac20aff586182a66932d3be64 (diff) | |
download | Compiler-667a766552e2002ae7cf7969d78aaeba906d3759.tar.gz Compiler-667a766552e2002ae7cf7969d78aaeba906d3759.zip |
Working with stack
Diffstat (limited to 'c_compiler/include/bindings.hpp')
-rw-r--r-- | c_compiler/include/bindings.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c_compiler/include/bindings.hpp b/c_compiler/include/bindings.hpp index 512e426..367986d 100644 --- a/c_compiler/include/bindings.hpp +++ b/c_compiler/include/bindings.hpp @@ -24,7 +24,7 @@ class VariableStackBindings private: std::map<std::string, DeclarationData> bindings_; int stack_counter_; - unsigned expression_stack_; + int expression_stack_; public: VariableStackBindings(); @@ -37,7 +37,7 @@ public: int currentStackPosition() const; int stackPosition(const std::string& id) const; - unsigned currentExpressionStackPosition() const; + int currentExpressionStackPosition() const; bool bindingExists(const std::string& id) const; }; |