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 --- stmt.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 stmt.h (limited to 'stmt.h') diff --git a/stmt.h b/stmt.h new file mode 100644 index 0000000..ae4b8bb --- /dev/null +++ b/stmt.h @@ -0,0 +1,35 @@ +#ifndef STMTS_H +#define STMTS_H + +#include "cgen.h" +#include "prv.h" +#include "call.h" +#include "display.h" +#include "set.h" +#include "warn.h" + +struct stmt +{ + enum + { + DISPLAY, + SET, + CALL, + WARN + } type; + + union + { + struct display display; + struct set set; + struct call call; + struct warn warn; + } u; +}; + +struct stmt *stmt_cur(const struct prv *p); +int stmt_cgen(const struct stmt *s, struct cgen *c); +void stmt_free(struct stmt *s); +extern const struct seq stmts[]; + +#endif -- cgit v1.2.3