X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/aed7fd9b9736c68bf23bb42ab422baf1281acf32..a67cef01b1c25ef62f7e50005af354a475d1e828:/src/parse-skel.y diff --git a/src/parse-skel.y b/src/parse-skel.y index 2e115b30..34445f3f 100644 --- a/src/parse-skel.y +++ b/src/parse-skel.y @@ -22,7 +22,6 @@ %debug %defines %verbose -%error-verbose %locations %name-prefix="skel_" %pure-parser @@ -37,6 +36,8 @@ #include "skeleton.h" #include "muscle_tab.h" +#define YYERROR_VERBOSE 1 + /* Pass the control structure to YYPARSE but not YYLEX (yet?). */ #define YYPARSE_PARAM skel_control /* YYPARSE receives SKEL_CONTROL as a void *. Provide a correctly @@ -247,8 +248,9 @@ process_skeleton (const char* skel) /* Output. */ skel_in = fopen (skel, "r"); - skel__flex_debug = 0; - skel_debug = trace_flag ? 1 : 0; + /* FIXME: This is not acceptable for a release. */ + skel__flex_debug = getenv ("BISON_TRACE_SCAN") ? 1 : 0; + skel_debug = getenv ("BISON_TRACE_PARSE") ? 1 : 0; skel_parse (NULL); /* Close the last parser. */