]> git.ipfire.org Git - pakfire.git/commitdiff
libpakfire: parser: Make top declaration more simple
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 11 Mar 2019 10:00:13 +0000 (10:00 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 11 Mar 2019 10:00:13 +0000 (10:00 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/parser/grammar.y

index b4f877e0082e80db3fcb09286770deaf9c549734..c380f75c4839cb1e951e8ef95d61cdb45480f036 100644 (file)
@@ -70,10 +70,12 @@ char* current_block = NULL;
 
 %%
 
-top                                                    : top empty
-                                                       | top block
+top                                                    : top thing
+                                                       | thing
+                                                       ;
+
+thing                                          : block
                                                        | empty
-                                                       | block
                                                        ;
 
 empty                                          : WHITESPACE NEWLINE