diff options
Diffstat (limited to 's4/dat.h')
-rw-r--r-- | s4/dat.h | 23 |
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)(); +}; |