]> git.ipfire.org Git - pakfire.git/commitdiff
libpakfire: parser: Allow top rule to be empty
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 29 Apr 2019 22:19:41 +0000 (23:19 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 29 Apr 2019 22:19:41 +0000 (23:19 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/parser/grammar.y

index 659c454c2e559368809ab7ebf20081324945c6dc..16ffd9b2078fd8397a91d9c6ceb8762abdb328e1 100644 (file)
@@ -91,8 +91,8 @@ char* current_block = NULL;
 
 %%
 
-top                                                    : top thing
-                                                       | thing
+top                                                    : %empty
+                                                       | top thing
                                                        ;
 
 thing                                          : assignment