aboutsummaryrefslogtreecommitdiff
path: root/c.y
diff options
context:
space:
mode:
Diffstat (limited to 'c.y')
-rw-r--r--c.y5
1 files changed, 4 insertions, 1 deletions
diff --git a/c.y b/c.y
index 96866ef..fcf4e1f 100644
--- a/c.y
+++ b/c.y
@@ -115,7 +115,10 @@ parameter: type ID {
$$->name = $2;
} ;
-block: '{' statement_list '}' {
+block: '{' '}' {
+ $$ = node_make_1(N_BLOCK, node_make_0(N_LIST_END));
+ }
+ | '{' statement_list '}' {
$$ = node_make_1(N_BLOCK, $2);
} ;