diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-10-01 01:04:30 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-10-11 00:14:35 +0200 |
| commit | 4ce39e4fc1de9536de7dedfe91b6dee38dec76ae (patch) | |
| tree | f9820f96b8eab624430c3700f32a2878a7036ee2 /src/prc1/cgen/prv.h | |
| parent | 9140988be4e5bb028b7140aca1a67af1370c72a7 (diff) | |
| download | prc-4ce39e4fc1de9536de7dedfe91b6dee38dec76ae.tar.gz | |
WIP sym + cgen
Diffstat (limited to 'src/prc1/cgen/prv.h')
| -rw-r--r-- | src/prc1/cgen/prv.h | 23 |
1 files changed, 23 insertions, 0 deletions
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 |
