summaryrefslogtreecommitdiff
path: root/s4/dat.h
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-08-31 16:07:55 +0000
committerrodri <rgl@antares-labs.eu>2024-08-31 16:07:55 +0000
commitb94627b33d055c0d644480c9100d19c6318ed9c1 (patch)
tree90621333ad3865b1c2e675adf00d062f7907b566 /s4/dat.h
parent8cca4d1fe83f792d0f3c5dd897611ea2ff441de0 (diff)
downloadrhoc-front.tar.gz
rhoc-front.tar.bz2
rhoc-front.zip
stage 4 (incomplete).front
Diffstat (limited to 's4/dat.h')
-rw-r--r--s4/dat.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/s4/dat.h b/s4/dat.h
new file mode 100644
index 0000000..9cdb6c7
--- /dev/null
+++ b/s4/dat.h
@@ -0,0 +1,23 @@
+typedef struct Symbol Symbol;
+typedef struct Const Const;
+typedef struct Builtin Builtin;
+
+struct Symbol {
+ char *name;
+ int type;
+ union {
+ double val;
+ double (*fn)(double);
+ } u;
+ Symbol *next;
+};
+
+struct Const {
+ char *name;
+ double val;
+};
+
+struct Builtin {
+ char *name;
+ double (*fn)();
+};