[refractor] moved classes into ozulis namespace and created a folder plugins
[ozulis.git] / src / ozulis / lang / parser.cc
blob6601bbfdfe95b2fcf8907e39180a5ca577dd2ebc
1 #include <stdio.h>
2 #include <string>
4 #include <ozulis/core/assert.hh>
5 #include <ozulis/lang/parser.hh>
7 namespace ozulis
9 namespace lang
11 Parser::~Parser()
15 ast::File *
16 Parser::parseFile(const std::string & path)
18 assert(!path.empty());
19 FILE * stream = fopen(path.c_str(), "r");
20 assert(stream);
21 return parse(stream);