From 8cca4d1fe83f792d0f3c5dd897611ea2ff441de0 Mon Sep 17 00:00:00 2001 From: rodri Date: Sat, 31 Aug 2024 16:07:15 +0000 Subject: stage 3. --- s3/dat.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 s3/dat.h (limited to 's3/dat.h') 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)(); +}; -- cgit v1.2.3