fix pretty printing and make commandline interface
[ccc.git] / ast.h
diff --git a/ast.h b/ast.h
index 0332e84..f84f08b 100644 (file)
--- a/ast.h
+++ b/ast.h
@@ -6,7 +6,7 @@
 
 #include "util.h"
 struct ast;
-#include "y.tab.h"
+#include "parse.h"
 
 struct ast {
        int ndecls;
@@ -43,8 +43,6 @@ struct decl {
                        int natypes;
                        struct type **atypes;
                        struct type *rtype;
-                       int nvar;
-                       struct vardecl **vars;
                        int nbody;
                        struct stmt **body;
                } dfun;
@@ -129,7 +127,7 @@ struct ast *ast(struct list *decls);
 struct vardecl *vardecl(struct type *type, char *ident, struct expr *expr);
 
 struct decl *decl_fun(char *ident, struct list *args, struct list *atypes,
-       struct type *rtype, struct list *vars, struct list *body);
+       struct type *rtype, struct list *body);
 struct decl *decl_var(struct vardecl *vardecl);
 
 struct stmt *stmt_assign(char *ident, struct list *fields, struct expr *expr);