summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorthing1 <thing1@seacrossedlovers.xyz>2025-02-18 22:00:20 +0000
committerthing1 <thing1@seacrossedlovers.xyz>2025-02-18 22:00:20 +0000
commitecfbc703dc930a20d56562451f4aa807175503e2 (patch)
tree7c1dd2742363625f59e4d9f7ba62a8d9594cd463 /types.h
init commitHEADmaster
Diffstat (limited to 'types.h')
-rw-r--r--types.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/types.h b/types.h
new file mode 100644
index 0000000..b2e50c2
--- /dev/null
+++ b/types.h
@@ -0,0 +1,18 @@
+#include <stdbool.h>
+
+typedef struct exp {
+ char name;
+ char op;
+
+ bool var;
+ union {
+ int v;
+ char vv;
+ };
+} exp;
+
+typedef struct function {
+ exp *exprs[1024];
+ int exprcount;
+ char name;
+} function;