[refractoring] removed the lang namespace
[ozulis.git] / src / ozulis / parser.cc
blob59509858c444486490c9cd1f653de85a990fa348
1 #include <stdio.h>
2 #include <string>
4 #include <ozulis/core/assert.hh>
5 #include <ozulis/parser.hh>
7 namespace ozulis
9 Parser::~Parser()
13 ast::File *
14 Parser::parseFile(const std::string & path)
16 assert(!path.empty());
17 FILE * stream = fopen(path.c_str(), "r");
18 assert(stream);
19 return parse(stream);