summaryrefslogtreecommitdiff
path: root/src/core/parser/Parser.cpp
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 /src/core/parser/Parser.cpp
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 'src/core/parser/Parser.cpp')
-rw-r--r--src/core/parser/Parser.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/core/parser/Parser.cpp b/src/core/parser/Parser.cpp
index b5d9656..2978669 100644
--- a/src/core/parser/Parser.cpp
+++ b/src/core/parser/Parser.cpp
@@ -16,16 +16,23 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <core/common/CharReader.hpp>
+
#include "Parser.hpp"
namespace ousia {
-namespace parser {
+
+/* Class Parser */
+
+Rooted<Node> Parser::parse(CharReader &reader, ParserContext &ctx)
+{
+ return doParse(reader, ctx);
+}
Rooted<Node> Parser::parse(const std::string &str, ParserContext &ctx)
{
CharReader reader{str};
- return parse(reader, ctx);
-}
+ return doParse(reader, ctx);
}
}