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 5b74678..3322db0 100644 (file)
@@ -478,7 +478,6 @@ operator:
 |      ','                     { $$ = ','; }
 |      '='                     { $$ = '='; }
 |      PASTE                   { $$ = PASTE; }
-|      DEFINED                 { $$ = DEFINED; }
 ;
 
 %%