diff options
author | tomsmeding <tom.smeding@gmail.com> | 2018-01-24 22:54:19 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2018-01-24 22:54:19 +0100 |
commit | bd7ef7a572f3faa58a550baca46a1b4f95e9b95d (patch) | |
tree | 6d57157a319e3d5fdc2de832d892a06993ecb890 | |
parent | c4fe34aecd563b0a27c62bdebd9ec1fcb2941806 (diff) |
Allow empty code blocks
-rw-r--r-- | c.y | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); } ; |