Created
March 22, 2015 05:34
-
-
Save rcombs/5972c3cb134ee80d107b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef enum { | |
INTEGER, | |
FLOAT, | |
CHAR, | |
STRING, | |
SYMBOL, | |
LIST, | |
LPAREN, | |
RPAREN, | |
QUOTED, | |
} type_t; | |
typedef enum { | |
NIL, | |
UNDEFINED, | |
//etc... | |
} builtin_t; | |
/*Here's what an object looks like:*/ | |
typedef struct { | |
type_t type; | |
union value { | |
int64_t integer; | |
double float; | |
char *string; | |
builtin_t builtin; | |
void *void; | |
} | |
} object_t; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment