summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2013-07-12 23:18:44 -0700
committerKenneth Graunke <kenneth@whitecape.org>2013-07-16 11:31:58 -0700
commit4ab7fc9ec345eab7a019174d513a918626c61dcf (patch)
treed61916714a48ffc51f4ebf1edfb669d9655165ca
parent73620709c9dce79e58bd0d29be95c658ac95779b (diff)
glsl: Fail the build if the grammar contains shift/reduce errors.
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>
-rw-r--r--src/glsl/glsl_parser.yy2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy
index e4b7ff7dbd..25bcc653d3 100644
--- a/src/glsl/glsl_parser.yy
+++ b/src/glsl/glsl_parser.yy
@@ -41,6 +41,8 @@ static void yyerror(YYLTYPE *loc, _mesa_glsl_parse_state *st, const char *msg)
}
%}
+%expect 0
+
%pure-parser
%error-verbose