glcpp: Remove 2 shift/reduce conflicts from the grammar.
authorCarl Worth <cworth@cworth.org>
Wed, 28 Jul 2010 18:07:46 +0000 (11:07 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 28 Jul 2010 18:07:46 +0000 (11:07 -0700)
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.

src/glsl/glcpp/glcpp-parse.y

index 5b7467836d7258540fbf21462834a26a3847ed41..3322db06ed374341dc04898222ac880f4e07a572 100644 (file)
@@ -478,7 +478,6 @@ operator:
 |      ','                     { $$ = ','; }
 |      '='                     { $$ = '='; }
 |      PASTE                   { $$ = PASTE; }
-|      DEFINED                 { $$ = DEFINED; }
 ;
 
 %%