#include "util.h"
struct ast;
-#include "y.tab.h"
+#include "parse.h"
struct ast {
int ndecls;
int natypes;
struct type **atypes;
struct type *rtype;
- int nvar;
- struct vardecl **vars;
int nbody;
struct stmt **body;
} dfun;
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);