From 2b9ac0c0a26b2c32277f3e17e12f69c2ec27bd4f Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Wed, 4 Mar 2015 21:43:36 +0100 Subject: Prepared implementation of user defined tokens --- src/core/parser/stack/TokenStack.hpp | 31 ------------------------------- 1 file changed, 31 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 f2e7edc..667b976 100644 --- a/src/core/parser/stack/TokenStack.hpp +++ b/src/core/parser/stack/TokenStack.hpp @@ -43,44 +43,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> 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. * -- cgit v1.2.3