From 683eeb00d62121150e9e311822226bdddd932569 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 15 Mar 2015 14:00:19 +0100 Subject: Add not yet implemented "inherit" flag to the Stack class --- src/core/parser/stack/Stack.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/parser/stack/Stack.cpp') 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 &tokens) override; + void pushTokens(const std::vector &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 &tokens) +void StackImpl::pushTokens(const std::vector &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 &tokens) std::cout << token.close << std::endl; std::cout << token.shortForm << std::endl; } - tokenStack.pushTokens(tokens); + tokenStack.pushTokens(tokens, inherit); } void StackImpl::popTokens() -- cgit v1.2.3