From 3c0819236e4f07c8f57aaf1ca46d0d68aa761558 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sat, 5 Sep 2026 17:14:53 +0200 Subject: Move source to src/prc1 --- src/prc1/stmt.h | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/prc1/stmt.h (limited to 'src/prc1/stmt.h') diff --git a/src/prc1/stmt.h b/src/prc1/stmt.h new file mode 100644 index 0000000..5cc650d --- /dev/null +++ b/src/prc1/stmt.h @@ -0,0 +1,44 @@ +#ifndef STMTS_H +#define STMTS_H + +#include "cgen.h" +#include "prv.h" +#include "call.h" +#include "display.h" +#include "end.h" +#include "from.h" +#include "set.h" +#include "warn.h" + +struct stmt +{ + enum + { + DISPLAY, + SET, + CALL, + WARN, + FROM, + END + } type; + + int (*end)(const struct stmt *, struct cgen *); + + union + { + struct display display; + struct set set; + struct call call; + struct warn warn; + struct from from; + struct end end; + } 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