summaryrefslogtreecommitdiff
path: root/src/core/parser/stack/Stack.cpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-03-31 23:57:59 +0200
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2016-04-25 22:19:28 +0200
commit8c85e1c10085d6d634e35a63f0fc7b68a1b28eff (patch)
treea09c12c3d0ed3269e6bc1f789da95ef3967b36d1 /src/core/parser/stack/Stack.cpp
parent5aed7c46cff192311a208dc5e9cf7f81a40771a8 (diff)
Remove "inherit" flag in TokenStack, add tiny unit test for TokenStack, temporarily remove pushTokens and popTokens calls from DocumentChildHandler
Diffstat (limited to 'src/core/parser/stack/Stack.cpp')
-rw-r--r--src/core/parser/stack/Stack.cpp12
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()