2005-12-05 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / jay / skeleton.cs
index eb38daaec46167acd6c538d8ae7afe4a65d51856..32cf8980452e18bc5532dcf56329dd7027f2dd15 100644 (file)
@@ -29,7 +29,7 @@
 .      @param expected vector of acceptable tokens, if available.
 .    */
 .  public void yyerror (string message, string[] expected) {
-.    if ((expected != null) && (expected.Length  > 0)) {
+.    if ((yacc_verbose_flag > 0) && (expected != null) && (expected.Length  > 0)) {
 .      ErrorOutput.Write (message+", expecting");
 .      for (int n = 0; n < expected.Length; ++ n)
 .        ErrorOutput.Write (" "+expected[n]);