#define PAIR 0 typedef struct ast { int type; union { long i; char *s; double f; struct { struct ast *l; struct ast *r; } p; } c; } ast; ast *new_pair(ast *l, ast *r); ast *new_int(char *s); ast *new_float(char *s); ast *new_id(char *id); void free_ast(ast *n);