summaryrefslogtreecommitdiff
path: root/test/core/parser
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-21 01:17:49 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-21 01:17:49 +0100
commit6decad0b8e7e369bd8215f31a45dd3eae982d2a9 (patch)
tree96d22db47629956c554d11a9e56bc68a2fc9b40b /test/core/parser
parent311a770805dff2cdffc1ecbfbbf0c5aae44c8878 (diff)
Some further refactoring -- renamed Scope to ParserScope, got rid of parser namespace, added new functionality to RegistryClass, wrote documentation, added function for extracting file extensions to Utils
Diffstat (limited to 'test/core/parser')
-rw-r--r--test/core/parser/ParserStackTest.cpp3
-rw-r--r--test/core/parser/StandaloneParserContext.hpp7
2 files changed, 4 insertions, 6 deletions
diff --git a/test/core/parser/ParserStackTest.cpp b/test/core/parser/ParserStackTest.cpp
index 69978b0..81160da 100644
--- a/test/core/parser/ParserStackTest.cpp
+++ b/test/core/parser/ParserStackTest.cpp
@@ -24,7 +24,6 @@
#include <core/parser/StandaloneParserContext.hpp>
namespace ousia {
-namespace parser {
static const State STATE_DOCUMENT = 0;
static const State STATE_BODY = 1;
@@ -168,7 +167,5 @@ TEST(ParserStack, validation)
ASSERT_FALSE(logger.hasError());
s.end();
}
-
-}
}
diff --git a/test/core/parser/StandaloneParserContext.hpp b/test/core/parser/StandaloneParserContext.hpp
index 347d34f..51cd1e6 100644
--- a/test/core/parser/StandaloneParserContext.hpp
+++ b/test/core/parser/StandaloneParserContext.hpp
@@ -23,16 +23,18 @@
#include <core/model/Project.hpp>
#include <core/parser/Parser.hpp>
+#include <core/parser/ParserScope.hpp>
+#include <core/parser/ParserContext.hpp>
+#include <core/Registry.hpp>
namespace ousia {
-namespace parser {
struct StandaloneParserContext {
public:
Manager manager;
Logger logger;
- Scope scope;
Registry registry;
+ ParserScope scope;
Rooted<model::Project> project;
ParserContext context;
@@ -47,7 +49,6 @@ public:
context(scope, registry, externalLogger, manager, project){};
};
}
-}
#endif /* _OUSIA_STANDALONE_PARSER_CONTEXT_ */