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/cgen/prv.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/prc1/cgen/prv.h (limited to 'src/prc1/cgen/prv.h') diff --git a/src/prc1/cgen/prv.h b/src/prc1/cgen/prv.h new file mode 100644 index 0000000..dc99404 --- /dev/null +++ b/src/prc1/cgen/prv.h @@ -0,0 +1,23 @@ +#ifndef CGEN_PRV_H +#define CGEN_PRV_H + +#include "cgen.h" +#include "call.h" +#include "print.h" +#include "set.h" +#include "storage.h" + +struct cgen_drv +{ + int (*print)(const struct print *, struct cgen *, const char *); + int (*gl)(const struct storage *, struct cgen *); + int (*ws)(const struct storage *, struct cgen *); + int (*call)(const struct call *, struct cgen *); + int (*set)(const struct set *, struct cgen *); + int (*fn)(const struct fn *, struct cgen *); + void (*free)(struct cgen_prv *); +}; + +int cgen_qbe(const struct ast *ast, struct cgen *c); + +#endif -- cgit v1.2.3