diff options
author | Søren Sandmann <sandmann@redhat.com> | 2007-12-31 17:21:42 -0500 |
---|---|---|
committer | Søren Sandmann <sandmann@redhat.com> | 2007-12-31 17:21:42 -0500 |
commit | 63c6facbf1cee7df75ac83e32ccabe736f266592 (patch) | |
tree | 8e89ae48a48faf74238e7bc3b99252095d24c114 /ast.c | |
parent | 75d2e1cebdafd565d26b450859e4552ad757e66a (diff) |
Add block expressions
Diffstat (limited to 'ast.c')
-rw-r--r-- | ast.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -387,6 +387,16 @@ ast_expression_new_new (ast_type_spec_t *type, } ast_expression_t * +ast_expression_new_block (ast_expression_t *body) +{ + ast_expression_t *expr = expression_new (AST_BLOCK_EXPRESSION); + + expr->block.body = body; + + return expr; +} + +ast_expression_t * ast_expression_new_dot (ast_expression_t *left, const char *name) { |