diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-03-03 20:20:40 +0100 |
---|---|---|
committer | Andreas Stöckel <andreas@somweyr.de> | 2015-03-03 20:20:40 +0100 |
commit | 42c0480b4fbf80afa0c5b13650a0af74311d7202 (patch) | |
tree | 13f40104b4d8ebcb394f9adbf0b6a723889acea9 /src/core/parser/stack/Handler.hpp | |
parent | b6ec0740e027fc1bc7f6d2513583187061bc8f0a (diff) |
Implemented annotation handling
Diffstat (limited to 'src/core/parser/stack/Handler.hpp')
-rw-r--r-- | src/core/parser/stack/Handler.hpp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/core/parser/stack/Handler.hpp b/src/core/parser/stack/Handler.hpp index 67fde06..d85848a 100644 --- a/src/core/parser/stack/Handler.hpp +++ b/src/core/parser/stack/Handler.hpp @@ -209,13 +209,6 @@ protected: public: /** - * Enum representing the type of the annotation a Handle instance handles. - * It may either handle the start of an annotation or the end of an - * annotation. - */ - enum class AnnotationType { START, END }; - - /** * Enum type representing the possible outcomes of the endToken() method. */ enum class EndTokenResult { ENDED_THIS, ENDED_HIDDEN, ENDED_NONE }; @@ -347,11 +340,8 @@ public: * accessed using the name() method. * * @param args is a map from strings to variants (argument name and value). - * @param type specifies whether this handler should handle the start of an - * annotation or the end of an annotation. */ - virtual bool startAnnotation(Variant::mapType &args, - AnnotationType annotationType) = 0; + virtual bool startAnnotation(Variant::mapType &args) = 0; /** * Called whenever the handler should handle the start of a token. This @@ -442,8 +432,7 @@ protected: public: bool startCommand(Variant::mapType &args) override; - bool startAnnotation(Variant::mapType &args, - AnnotationType annotationType) override; + bool startAnnotation(Variant::mapType &args) override; bool startToken(Handle<Node> node) override; EndTokenResult endToken(const Token &token, Handle<Node> node) override; void end() override; @@ -468,8 +457,7 @@ protected: public: bool startCommand(Variant::mapType &args) override; - bool startAnnotation(Variant::mapType &args, - AnnotationType annotationType) override; + bool startAnnotation(Variant::mapType &args) override; bool startToken(Handle<Node> node) override; EndTokenResult endToken(const Token &token, Handle<Node> node) override; void end() override; |