glsl: Fail the build if the grammar contains shift/reduce errors.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 13 Jul 2013 06:18:44 +0000 (23:18 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 16 Jul 2013 18:31:58 +0000 (11:31 -0700)
When working on a parser, it's very easy to accidentally introduce
new shift/reduce conflicts.  Failing the build guarantees they'll
be noticed and fixed.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/glsl/glsl_parser.yy

index e4b7ff7dbdf44d9167588b9874bde1d75fdcacfe..25bcc653d3c54f281c46d562f1a5c17739b6405d 100644 (file)
@@ -41,6 +41,8 @@ static void yyerror(YYLTYPE *loc, _mesa_glsl_parse_state *st, const char *msg)
 }
 %}
 
+%expect 0
+
 %pure-parser
 %error-verbose