fix pretty printing and make commandline interface
[ccc.git] / expr.c
diff --git a/expr.c b/expr.c
deleted file mode 100644 (file)
index 96383c6..0000000
--- a/expr.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include <stdlib.h>
-#include <stdio.h>
-
-#include "ast.h"
-#include "y.tab.h"
-extern int yylex_destroy(void);
-
-int main()
-{
-       struct ast *result;
-        int r = yyparse(&result);
-       if (r != 0)
-               return 1;
-       yylex_destroy();
-       ast_print(result, stdout);
-       ast_free(result);
-       return 0;
-}