diff options
Diffstat (limited to 'src/core/parser/stack/TokenStack.hpp')
-rw-r--r-- | src/core/parser/stack/TokenStack.hpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/core/parser/stack/TokenStack.hpp b/src/core/parser/stack/TokenStack.hpp index f2e7edc..667b976 100644 --- a/src/core/parser/stack/TokenStack.hpp +++ b/src/core/parser/stack/TokenStack.hpp @@ -44,44 +44,13 @@ namespace parser_stack { class TokenStack { private: /** - * Shared pointer at the parent TokenStack instance. May be nullptr, in - * which case no parent TokenStack instance exists. - */ - const TokenStack *parentStack; - - /** * Stack containing vectors of TokenSyntaxDescriptor instances as given by * the user. */ std::vector<std::vector<SyntaxDescriptor>> stack; - /** - * Constructor of the TokenStack class. - * - * @param parentStack is a pointer at the underlying parentStack instance - * to which calls should be forwarded if no data has been pushed onto this - * stack instance. - */ - TokenStack(const TokenStack *parentStack) : parentStack(parentStack) {} - public: /** - * Default constructor of the TokenStack class with no reference at a parent - * stack. - */ - TokenStack() : TokenStack(nullptr) {} - - /** - * Constructor of the TokenStack class with a reference at a parent - * TokenStack instance. - * - * @param parentStack is a reference at a parent TokenStack instance. If no - * data has yet been pushed onto this instance, calls will be forwarded to - * the parent stack. - */ - TokenStack(const TokenStack &parentStack) : TokenStack(&parentStack) {} - - /** * Pushes a list of SyntaxDescriptor instances onto the internal stack. * * @param tokens is a list of SyntaxDescriptor instances that should be |