summaryrefslogtreecommitdiff
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-05-17 11:13:23 +0200
commit527c23b73c8dae16f02cca6f450edb7d8225f60f (patch)
tree6b2bfd9e8d814026d6d2c1839d8cfe1bcadc825c /stmt.h
downloadslcob-master.tar.gz
Add project skeletonHEADmaster
Diffstat (limited to 'stmt.h')
-rw-r--r--stmt.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/stmt.h b/stmt.h
new file mode 100644
index 0000000..0ee70cb
--- /dev/null
+++ b/stmt.h
@@ -0,0 +1,32 @@
+#ifndef STMTS_H
+#define STMTS_H
+
+#include "cgen.h"
+#include "prv.h"
+#include "call.h"
+#include "display.h"
+#include "set.h"
+
+struct stmt
+{
+ enum
+ {
+ DISPLAY,
+ SET,
+ CALL
+ } type;
+
+ union
+ {
+ struct display display;
+ struct set set;
+ struct call call;
+ } 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