summaryrefslogtreecommitdiff
path: root/src/core/parser/stack/Handler.hpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-03-02 11:46:47 +0100
committerAndreas Stöckel <andreas@somweyr.de>2015-03-02 11:46:47 +0100
commit5b81f755a5303c3eab05c605711ecca32c071b6d (patch)
tree33347057ca5aa70abf2e512b16b1d3f90ac394a6 /src/core/parser/stack/Handler.hpp
parentf65e7af0dd0028ec481360eeaa16c4ff95ce253b (diff)
Got Stack compiling again
Diffstat (limited to 'src/core/parser/stack/Handler.hpp')
-rw-r--r--src/core/parser/stack/Handler.hpp75
1 files changed, 38 insertions, 37 deletions
diff --git a/src/core/parser/stack/Handler.hpp b/src/core/parser/stack/Handler.hpp
index 377a214..19c3d65 100644
--- a/src/core/parser/stack/Handler.hpp
+++ b/src/core/parser/stack/Handler.hpp
@@ -162,6 +162,44 @@ protected:
const std::string &name() const;
/**
+ * Calls the corresponding function in the HandlerCallbacks instance. This
+ * method registers the given tokens as tokens that are generally available,
+ * tokens must be explicitly enabled using the "pushTokens" and "popTokens"
+ * method. Tokens that have not been registered are not guaranteed to be
+ * reported (except for special tokens, these do not have to be registerd).
+ *
+ * @param token is the token string that should be made available.
+ * @return the TokenId that will be used to refer to the token.
+ */
+ TokenId registerToken(const std::string &token);
+
+ /**
+ * Calls the corresponding function in the HandlerCallbacks instance. This
+ * method unregisters the given token. Note that for a token to be no longer
+ * reported, this function has to be called as many times as registerToken()
+ * for the corresponding token.
+ *
+ * @param id is the id of the Token that should be unregistered.
+ */
+ void unregisterToken(TokenId id);
+
+ /**
+ * Pushes a list of TokenSyntaxDescriptor instances onto the internal stack.
+ * The tokens described in the token list are the tokens that are currently
+ * enabled.
+ *
+ * @param tokens is a list of TokenSyntaxDescriptor instances that should be
+ * stored on the stack.
+ */
+ void pushTokens(const std::vector<TokenSyntaxDescriptor> &tokens);
+
+ /**
+ * Calls the corresponding function in the HandlerCallbacks instance.
+ * Removes the previously pushed list of tokens from the stack.
+ */
+ void popTokens();
+
+ /**
* Calls the corresponding method in the HandlerCallbacks instance. Reads a
* string variant form the current input stream. This function must be
* called from the data() method.
@@ -193,43 +231,6 @@ protected:
*/
// void popWhitespaceMode();
- /**
- * Pushes a list of TokenSyntaxDescriptor instances onto the internal stack.
- * The tokens described in the token list are the tokens that are currently
- * enabled.
- *
- * @param tokens is a list of TokenSyntaxDescriptor instances that should be
- * stored on the stack.
- */
- void pushTokens(const std::vector<TokenSyntaxDescriptor> &tokens);
-
- /**
- * Calls the corresponding function in the HandlerCallbacks instance.
- * Removes the previously pushed list of tokens from the stack.
- */
- void popTokens();
-
- /**
- * Calls the corresponding function in the HandlerCallbacks instance. This
- * method registers the given tokens as tokens that are generally available,
- * tokens must be explicitly enabled using the "pushTokens" and "popTokens"
- * method. Tokens that have not been registered are not guaranteed to be
- * reported (except for special tokens, these do not have to be registerd).
- *
- * @param token is the token string that should be made available.
- * @return the TokenId that will be used to refer to the token.
- */
- TokenId registerToken(const std::string &token);
-
- /**
- * Calls the corresponding function in the HandlerCallbacks instance. This
- * method unregisters the given token. Note that for a token to be no longer
- * reported, this function has to be called as many times as registerToken()
- * for the corresponding token.
- *
- * @param id is the id of the Token that should be unregistered.
- */
- void unregisterToken(TokenId id);
public:
/**