repo.or.cz
/
ozulis.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[refractoring] removed the lang namespace
[ozulis.git]
/
src
/
ozulis
/
parser.cc
blob
59509858c444486490c9cd1f653de85a990fa348
1
#include <stdio.h>
2
#include <string>
3
4
#include <ozulis/core/assert.hh>
5
#include <ozulis/parser.hh>
6
7
namespace
ozulis
8
{
9
Parser
::~
Parser
()
10
{
11
}
12
13
ast
::
File
*
14
Parser
::
parseFile
(
const
std
::
string
&
path
)
15
{
16
assert
(!
path
.
empty
());
17
FILE
*
stream
=
fopen
(
path
.
c_str
(),
"r"
);
18
assert
(
stream
);
19
return
parse
(
stream
);
20
}
21
}