From 4ce39e4fc1de9536de7dedfe91b6dee38dec76ae Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Thu, 1 Oct 2026 01:04:30 +0200 Subject: WIP sym + cgen --- src/prc1/sym.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/prc1/sym.h (limited to 'src/prc1/sym.h') 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 -- cgit v1.2.3