summaryrefslogtreecommitdiff
path: root/s4/dat.h
blob: 9cdb6c720657f59217c09acee0722f04164d995f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)();
};