summaryrefslogtreecommitdiff
path: root/src/plugins/plain/PlainFormatStreamReader.hpp
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-02-08 19:49:17 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-02-08 19:49:17 +0100
commit9ef316ed4ea8542973d272fa9c7b4c6804b28144 (patch)
tree1e884c61b5915f913c8db404cc9137bbe8eae01c /src/plugins/plain/PlainFormatStreamReader.hpp
parent05e5a4ab340d0f9f3490e7db9c8e42f70cc471da (diff)
parentf6e7859a835375c25226719a46df99ec11037599 (diff)
Merge branch 'master' of somweyr.de:ousia
Diffstat (limited to 'src/plugins/plain/PlainFormatStreamReader.hpp')
-rw-r--r--src/plugins/plain/PlainFormatStreamReader.hpp34
1 files changed, 33 insertions, 1 deletions
diff --git a/src/plugins/plain/PlainFormatStreamReader.hpp b/src/plugins/plain/PlainFormatStreamReader.hpp
index 1a136cd..b2ea378 100644
--- a/src/plugins/plain/PlainFormatStreamReader.hpp
+++ b/src/plugins/plain/PlainFormatStreamReader.hpp
@@ -31,6 +31,8 @@
#include <core/common/Variant.hpp>
+#include "DynamicTokenizer.hpp"
+
namespace ousia {
// Forward declarations
@@ -123,6 +125,11 @@ private:
Logger &logger;
/**
+ * Tokenizer instance used to read individual tokens from the text.
+ */
+ DynamicTokenizer tokenizer;
+
+ /**
* Variant containing the current command name (always is a string variant,
* but additionally contains the correct locatino of the name).
*/
@@ -141,6 +148,31 @@ private:
Variant data;
/**
+ * Id of the backslash token.
+ */
+ TokenTypeId tokenBackslash;
+
+ /**
+ * Id of the linebreak token.
+ */
+ TokenTypeId tokenLinebreak;
+
+ /**
+ * Id of the line comment token.
+ */
+ TokenTypeId tokenLineComment;
+
+ /**
+ * Id of the block comment start token.
+ */
+ TokenTypeId tokenBlockCommentStart;
+
+ /**
+ * If of the block comment end token.
+ */
+ TokenTypeId tokenBlockCommentEnd;
+
+ /**
* Contains the field index of the current command.
*/
size_t fieldIdx;
@@ -153,7 +185,7 @@ private:
/**
* Function used internally to parse a generic comment.
*/
- void parseComment();
+ void parseLineComment();
public:
/**