Created
December 8, 2017 22:41
-
-
Save raypulver/056818790171cdb3fa59b32394156027 to your computer and use it in GitHub Desktop.
cyclic struct definitions
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 struct _ast_binop_t { | |
ast_node_t *left; | |
ast_node_t *right; | |
} ast_binop_t; | |
typedef union _ast_data_t { | |
int integer; | |
ast_node_t node; | |
char *id; | |
ast_binop_t binop; | |
} ast_data_t; | |
typedef struct _ast_node_t { | |
int type; | |
ast_data_t data; | |
} ast_node_t; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does this work?Nope