diff options
author | rodri <rgl@antares-labs.eu> | 2024-08-31 16:07:15 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-08-31 16:07:15 +0000 |
commit | 8cca4d1fe83f792d0f3c5dd897611ea2ff441de0 (patch) | |
tree | 45eb5ba6c3d750819a7b2c13ec35a75c23015631 /s3/dat.h | |
parent | 53d3939960fe177c1958bce8e93c435cba7cf5e3 (diff) | |
download | rhoc-8cca4d1fe83f792d0f3c5dd897611ea2ff441de0.tar.gz rhoc-8cca4d1fe83f792d0f3c5dd897611ea2ff441de0.tar.bz2 rhoc-8cca4d1fe83f792d0f3c5dd897611ea2ff441de0.zip |
stage 3.
Diffstat (limited to 's3/dat.h')
-rw-r--r-- | s3/dat.h | 23 |
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)(); +}; |