diff options
Diffstat (limited to 'src/core/parser/stack/Stack.cpp')
-rw-r--r-- | src/core/parser/stack/Stack.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/core/parser/stack/Stack.cpp b/src/core/parser/stack/Stack.cpp index 6fa8659..e027271 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, bool inherit) override; + void pushTokens(const std::vector<SyntaxDescriptor> &tokens) override; void popTokens() override; }; @@ -1089,15 +1089,9 @@ void StackImpl::unregisterToken(TokenId id) tokenRegistry.unregisterToken(id); } -void StackImpl::pushTokens(const std::vector<SyntaxDescriptor> &tokens, bool inherit) +void StackImpl::pushTokens(const std::vector<SyntaxDescriptor> &tokens) { - // Push the tokens onto the token stack - for (const SyntaxDescriptor &token: tokens) { - std::cout << token.open << std::endl; - std::cout << token.close << std::endl; - std::cout << token.shortForm << std::endl; - } - tokenStack.pushTokens(tokens, inherit); + tokenStack.pushTokens(tokens); } void StackImpl::popTokens() |