Mesa (master): glsl: Fail the build if the grammar contains shift/ reduce errors.

Kenneth Graunke kwg at kemper.freedesktop.org
Tue Jul 16 18:30:43 UTC 2013


Module: Mesa
Branch: master
Commit: 4ab7fc9ec345eab7a019174d513a918626c61dcf
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4ab7fc9ec345eab7a019174d513a918626c61dcf

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Fri Jul 12 23:18:44 2013 -0700

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 at whitecape.org>
Reviewed-by: Chris Forbes <chrisf at ijw.co.nz>

---

 src/glsl/glsl_parser.yy |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy
index e4b7ff7..25bcc65 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
 




More information about the mesa-commit mailing list