#ifndef PRINT_H #define PRINT_H #include "cgen.h" #include "lex.h" #include "prv.h" #include struct prisym { enum {PRS_LIT, PRS_STR, PRS_PTR, PRS_NUM} type; const struct sym *s; union { const struct lit *lit; } u; }; struct print { struct prisym *syms; size_t nsyms; int skipln; }; int print(const struct lex *l, struct prv *p); int print_cgen(const struct print *pr, struct cgen *c, const char *f); void print_free(struct print *p); #endif