diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-03-31 23:57:59 +0200 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2016-04-25 22:19:28 +0200 |
commit | 8c85e1c10085d6d634e35a63f0fc7b68a1b28eff (patch) | |
tree | a09c12c3d0ed3269e6bc1f789da95ef3967b36d1 /src/core/parser/stack/TokenStack.hpp | |
parent | 5aed7c46cff192311a208dc5e9cf7f81a40771a8 (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/TokenStack.hpp')
-rw-r--r-- | src/core/parser/stack/TokenStack.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
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<SyntaxDescriptor> &tokens, bool inherit); + void pushTokens(const std::vector<SyntaxDescriptor> &tokens); /** * Removes the previously pushed list of tokens from the stack. |