Skip to content

Instantly share code, notes, and snippets.

@s0cks

s0cks/ast.h Secret

Created May 29, 2016 14:57
typedef enum{
RETURN,
BINARY_OP
} ast_node_type;
typedef struct{
ast_node_type type;
} ast_node;
typedef struct{
ast_node node;
ast_node* left;
ast_node* right;
} ast_node_binary_op;
typedef struct{
ast_node node;
ast_node* value;
} ast_node_return;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment