diff options
author | rodri <rgl@antares-labs.eu> | 2024-08-31 16:07:55 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-08-31 16:07:55 +0000 |
commit | b94627b33d055c0d644480c9100d19c6318ed9c1 (patch) | |
tree | 90621333ad3865b1c2e675adf00d062f7907b566 /s4/dat.h | |
parent | 8cca4d1fe83f792d0f3c5dd897611ea2ff441de0 (diff) | |
download | rhoc-b94627b33d055c0d644480c9100d19c6318ed9c1.tar.gz rhoc-b94627b33d055c0d644480c9100d19c6318ed9c1.tar.bz2 rhoc-b94627b33d055c0d644480c9100d19c6318ed9c1.zip |
stage 4 (incomplete).front
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)(); +}; |