From 8c85e1c10085d6d634e35a63f0fc7b68a1b28eff Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Tue, 31 Mar 2015 23:57:59 +0200 Subject: Remove "inherit" flag in TokenStack, add tiny unit test for TokenStack, temporarily remove pushTokens and popTokens calls from DocumentChildHandler --- src/core/parser/stack/TokenStack.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/core/parser/stack/TokenStack.hpp') diff --git a/src/core/parser/stack/TokenStack.hpp b/src/core/parser/stack/TokenStack.hpp index d5deafe..a0c8cff 100644 --- a/src/core/parser/stack/TokenStack.hpp +++ b/src/core/parser/stack/TokenStack.hpp @@ -67,7 +67,8 @@ struct TokenDescriptor { /** * The TokenStack class is used by the Stack class to collect all currently - * enabled user defined tokens. + * enabled user defined tokens. Additionally it allows the Stack class to + * remember the end tokens for pending open tokens. */ class TokenStack { private: @@ -83,10 +84,8 @@ public: * * @param tokens is a list of SyntaxDescriptor instances that should be * stored on the stack. - * @param inherit if set to true, combines the given tokens with the tokens - * from the last stack level. */ - void pushTokens(const std::vector &tokens, bool inherit); + void pushTokens(const std::vector &tokens); /** * Removes the previously pushed list of tokens from the stack. -- cgit v1.2.3