diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2014-12-01 21:27:08 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2014-12-01 21:27:08 +0100 |
commit | 5554f3594d00e267af447a24149f655ceff64d17 (patch) | |
tree | 7a06022fcd5799a12a55e95d2e45414260cc45cf /src/core/parser/Parser.hpp | |
parent | 082165d21269123f2658edc74aa1960669e306c8 (diff) |
working version of the ParserStack class plus unit tests
Diffstat (limited to 'src/core/parser/Parser.hpp')
-rw-r--r-- | src/core/parser/Parser.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/parser/Parser.hpp b/src/core/parser/Parser.hpp index b8faf98..fa5dd49 100644 --- a/src/core/parser/Parser.hpp +++ b/src/core/parser/Parser.hpp @@ -86,6 +86,19 @@ struct ParserContext { : scope(scope), registry(registry), logger(logger){}; }; +struct StandaloneParserContext : public ParserContext { +private: + Logger logger; + Scope scope; + Registry registry; + +public: + StandaloneParserContext() + : ParserContext(scope, registry, logger), + scope(nullptr), + registry(logger){}; +}; + /** * Abstract parser class. This class builds the basic interface that should be * used by any parser which reads data from an input stream and transforms it |