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
[refractor] moved classes into ozulis namespace and created a folder plugins
[ozulis.git]
/
src
/
ozulis
/
lang
/
parser.cc
blob
6601bbfdfe95b2fcf8907e39180a5ca577dd2ebc
1
#include <stdio.h>
2
#include <string>
3
4
#include <ozulis/core/assert.hh>
5
#include <ozulis/lang/parser.hh>
6
7
namespace
ozulis
8
{
9
namespace
lang
10
{
11
Parser
::~
Parser
()
12
{
13
}
14
15
ast
::
File
*
16
Parser
::
parseFile
(
const
std
::
string
&
path
)
17
{
18
assert
(!
path
.
empty
());
19
FILE
*
stream
=
fopen
(
path
.
c_str
(),
"r"
);
20
assert
(
stream
);
21
return
parse
(
stream
);
22
}
23
}
24
}