shithub: rhoc

ref: b94627b33d055c0d644480c9100d19c6318ed9c1
dir: /s3/dat.h/

View raw version
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)();
};