repositories
/
ccc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
use builtin operator associativity functionality
[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
,
stdout
);
14
return
0
;
15
}