repositories
/
ccc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
b5c82280e357556a09a64caa4b822008131905de
[ccc.git]
/
expr.c
1
#include <stdlib.h>
2
#include <stdio.h>
3
#include
"ast.h"
4
5
#include
"y.tab.h"
6
extern
int
yylex_destroy
(
void
);
7
8
int
main
()
9
{
10
struct
ast
*
result
=
NULL
;
11
int
r
=
yyparse
(&
result
);
12
if
(
r
!=
0
)
13
return
r
;
14
yylex_destroy
();
15
ast_print
(
result
,
0
,
stdout
);
16
ast_free
(
result
);
17
return
0
;
18
}