Skip to content

Instantly share code, notes, and snippets.

@micahrj
Created July 10, 2011 02:53
Show Gist options
  • Save micahrj/1074197 to your computer and use it in GitHub Desktop.
Save micahrj/1074197 to your computer and use it in GitHub Desktop.
typedef struct {
enum { JUXTAPOSITION, BLOCK, THING } type;
union {
struct { ast *a; ast *b; } juxtaposition;
ast *block;
thing *thing; } contents;
} ast;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment