summaryrefslogtreecommitdiff
path: root/src/core/parser/stack/TokenStack.hpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-03-04 21:43:36 +0100
committerAndreas Stöckel <andreas@somweyr.de>2015-03-04 21:43:36 +0100
commit2b9ac0c0a26b2c32277f3e17e12f69c2ec27bd4f (patch)
treed674ca6401944a151867f3affedce26f2a5aa17d /src/core/parser/stack/TokenStack.hpp
parenta0a768b425dd9b5f7f763b6104d263f25a32c96b (diff)
Prepared implementation of user defined tokens
Diffstat (limited to 'src/core/parser/stack/TokenStack.hpp')
-rw-r--r--src/core/parser/stack/TokenStack.hpp31
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