From: Carl Worth Date: Wed, 28 Jul 2010 18:07:46 +0000 (-0700) Subject: glcpp: Remove 2 shift/reduce conflicts from the grammar. X-Git-Tag: 062012170305~10660^2~266 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2233d10442f1e19d18693fc030aefe292b14cf29;p=profile%2Fivi%2Fmesa.git glcpp: Remove 2 shift/reduce conflicts from the grammar. Since we have productions to turn "defined FOO" and "defined ( FOO )" into a conditional_token we don't need to list DEFINED as an operator as well. Doing so just introduces the shift/reduce ambiguity with no benefit. --- diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y index 5b74678..3322db0 100644 --- a/src/glsl/glcpp/glcpp-parse.y +++ b/src/glsl/glcpp/glcpp-parse.y @@ -478,7 +478,6 @@ operator: | ',' { $$ = ','; } | '=' { $$ = '='; } | PASTE { $$ = PASTE; } -| DEFINED { $$ = DEFINED; } ; %%