From b25ff71bb198c227b3202ee32a8067cda413bc16 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sat, 9 May 2026 02:56:07 +0200 Subject: Add project skeleton --- print.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 print.h (limited to 'print.h') diff --git a/print.h b/print.h new file mode 100644 index 0000000..950e0bc --- /dev/null +++ b/print.h @@ -0,0 +1,26 @@ +#ifndef PRINT_H +#define PRINT_H + +#include "cgen.h" +#include "lex.h" +#include + +struct prientry +{ + const struct tk *tk; + const struct lit *lit; + const struct stentry *entry; +}; + +struct print +{ + struct prientry *entries; + size_t nentries; + int println; +}; + +int print(const struct lex *l, struct prv *p, + int (*fn)(const struct lex *, const struct prv *, const struct print *)); +void print_free(struct print *p); + +#endif -- cgit v1.2.3