diff options
Diffstat (limited to 'project2/files/configFlexLexer.h')
-rw-r--r-- | project2/files/configFlexLexer.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/project2/files/configFlexLexer.h b/project2/files/configFlexLexer.h new file mode 100644 index 0000000..177f11c --- /dev/null +++ b/project2/files/configFlexLexer.h @@ -0,0 +1,27 @@ +#ifndef CONFIGFLEXLEXER_H +#define CONFIGFLEXLEXER_H + +#include <glibmm/ustring.h> +#include <optionsSource.h> + +class configFlexLexer : public yyFlexLexer { + public: + configFlexLexer(std::istream & in, const ConfigConsumer & consume, const Options::CurrentPlatform &); + int yylex(); + + void LexerOutput(const char *, int) override; + void LexerError(const char * msg) override; + + private: + void process() const; + const ConfigConsumer & consume; + const Options::CurrentPlatform & currentPlatform; + + Glib::ustring domain; + Glib::ustring platform; + Glib::ustring option; + Glib::ustring value; +}; + +#endif + |