aboutsummaryrefslogtreecommitdiff
path: root/stmt.h
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2026-05-09 02:56:07 +0200
committerXavier Del Campo Romero <xavi92@disroot.org>2026-06-21 01:15:38 +0200
commitb25ff71bb198c227b3202ee32a8067cda413bc16 (patch)
tree41d665a87d948c10b17a853220cbcdbaeebf3672 /stmt.h
downloadprc-b25ff71bb198c227b3202ee32a8067cda413bc16.tar.gz
Add project skeletonHEADmaster
Diffstat (limited to 'stmt.h')
-rw-r--r--stmt.h35
1 files changed, 35 insertions, 0 deletions
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