#ifndef SYM_H #define SYM_H #include "lex.h" #include "prv.h" typedef int (*sym_fn)(const struct lex *, struct prv *, const struct sym *); int sym(struct prv *p, sym_fn fn); int sym_lval(const struct sym *s); int sym_rval(const struct sym *s); void sym_free(struct sym *s); const struct type *sym_type(struct prv *p, const struct sym *s); #endif