diff options
Diffstat (limited to 'ast.h')
| -rw-r--r-- | ast.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -78,6 +78,11 @@ struct paren_node { struct expr_list_node* expr_list; }; +struct cast_node { + struct type type; + struct expr_node* expr; +}; + struct expr_node { enum { EXPR_INT_LIT, @@ -90,6 +95,7 @@ struct expr_node { EXPR_UNARY, EXPR_BINARY, EXPR_PAREN, + EXPR_CAST, } type; union { struct int_lit_node int_lit; @@ -102,6 +108,7 @@ struct expr_node { struct unary_node unary; struct binary_node binary; struct paren_node paren; + struct cast_node cast; } inner; const struct type* resolved_type; |
