From: Carl Worth Date: Fri, 14 May 2010 18:33:00 +0000 (-0700) Subject: Eliminate a shift/reduce conflict. X-Git-Tag: 062012170305~10660^2~625^2~100^2~62 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac070e8bf5005151dd702f2cd3fbfb2d1eaaf00d;p=profile%2Fivi%2Fmesa.git Eliminate a shift/reduce conflict. By simply allowing for the argument_list production to be empty rather than the lower-level argument production to be empty. --- diff --git a/glcpp-parse.y b/glcpp-parse.y index 27b5514..e70b329 100644 --- a/glcpp-parse.y +++ b/glcpp-parse.y @@ -149,7 +149,10 @@ macro: ; argument_list: - argument { + /* empty */ { + $$ = _argument_list_create (parser); + } +| argument { $$ = _argument_list_create (parser); _argument_list_append ($$, $1); } @@ -164,8 +167,9 @@ argument_list: ; argument: - /* empty */ { + word { $$ = _string_list_create (parser); + _string_list_append_item ($$, $1); } | argument word { _string_list_append_item ($1, $2);