diff options
Diffstat (limited to 'src/prc1/sym.h')
| -rw-r--r-- | src/prc1/sym.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/prc1/sym.h b/src/prc1/sym.h new file mode 100644 index 0000000..17a54b3 --- /dev/null +++ b/src/prc1/sym.h @@ -0,0 +1,15 @@ +#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 |
