summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/main.c b/main.c
index 6945950..b2f31dd 100644
--- a/main.c
+++ b/main.c
@@ -77,5 +77,11 @@ int main(int argc,char **argv){
return 1;
}
- ;
+ AST *ast=parse(source);
+ if(ast==NULL){
+ fprintf(stderr,"Parsing error!\n");
+ return 1;
+ }
+ ast_debug(stderr,ast);
+ ast_free(ast);
}