summaryrefslogtreecommitdiff
path: root/cparser/Parser.vy
diff options
context:
space:
mode:
Diffstat (limited to 'cparser/Parser.vy')
-rw-r--r--cparser/Parser.vy5
1 files changed, 5 insertions, 0 deletions
diff --git a/cparser/Parser.vy b/cparser/Parser.vy
index a4cdb0d..ce1beae 100644
--- a/cparser/Parser.vy
+++ b/cparser/Parser.vy
@@ -836,6 +836,11 @@ translation_unit:
{ [def] }
| defq = translation_unit deft = external_declaration
{ deft::defq }
+(* Non-standard : empty declaration *)
+| tu = translation_unit SEMICOLON
+ { tu }
+| SEMICOLON
+ { [] }
external_declaration:
| def = function_definition