diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-03-15 14:00:19 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2016-04-25 22:19:27 +0200 |
commit | 683eeb00d62121150e9e311822226bdddd932569 (patch) | |
tree | 07cdd964fa3e8c893230e5a26d13969614b9e719 /src/core/parser/stack/Stack.cpp | |
parent | 73aa1e763eeb631eaaf23c236d263832678314c4 (diff) |
Add not yet implemented "inherit" flag to the Stack class
Diffstat (limited to 'src/core/parser/stack/Stack.cpp')
-rw-r--r-- | src/core/parser/stack/Stack.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/parser/stack/Stack.cpp b/src/core/parser/stack/Stack.cpp index 90735df..6fa8659 100644 --- a/src/core/parser/stack/Stack.cpp +++ b/src/core/parser/stack/Stack.cpp @@ -480,7 +480,7 @@ public: TokenId registerToken(const std::string &token) override; void unregisterToken(TokenId id) override; Variant readData() override; - void pushTokens(const std::vector<SyntaxDescriptor> &tokens) override; + void pushTokens(const std::vector<SyntaxDescriptor> &tokens, bool inherit) override; void popTokens() override; }; @@ -1089,7 +1089,7 @@ void StackImpl::unregisterToken(TokenId id) tokenRegistry.unregisterToken(id); } -void StackImpl::pushTokens(const std::vector<SyntaxDescriptor> &tokens) +void StackImpl::pushTokens(const std::vector<SyntaxDescriptor> &tokens, bool inherit) { // Push the tokens onto the token stack for (const SyntaxDescriptor &token: tokens) { @@ -1097,7 +1097,7 @@ void StackImpl::pushTokens(const std::vector<SyntaxDescriptor> &tokens) std::cout << token.close << std::endl; std::cout << token.shortForm << std::endl; } - tokenStack.pushTokens(tokens); + tokenStack.pushTokens(tokens, inherit); } void StackImpl::popTokens() |