summaryrefslogtreecommitdiff
path: root/s3/dat.h
diff options
context:
space:
mode:
Diffstat (limited to 's3/dat.h')
-rw-r--r--s3/dat.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/s3/dat.h b/s3/dat.h
new file mode 100644
index 0000000..9cdb6c7
--- /dev/null
+++ b/s3/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)();
+};