9cde3782c9b48f238cf0fc5b537942b4b987ef9d
[ccc.git] / expr.c
1 #include <stdlib.h>
2 #include <stdio.h>
3 #include "ast.h"
4
5 #include "y.tab.h"
6
7 int main()
8 {
9 struct ast *result = NULL;
10 int r = yyparse(&result);
11 if (r != 0)
12 return r;
13 ast_print(result, 0, stdout);
14 ast_free(result);
15 return 0;
16 }