]> thyrsus.com Git - mad.git/commitdiff
Improved error message.
authorEric S. Raymond <esr@thyrsus,com>
Tue, 10 Feb 2004 22:26:00 +0000 (22:26 +0000)
committerEric S. Raymond <esr@thyrsus,com>
Tue, 10 Feb 2004 22:26:00 +0000 (22:26 +0000)
yacc.py

diff --git a/yacc.py b/yacc.py
index b6299d65ccf02b217e830bbe4c28fdf1dc8d7e43..86b646b3e43e7d3fd1ab7c71e9d5ae5fcf68e683 100644 (file)
--- a/yacc.py
+++ b/yacc.py
@@ -8,7 +8,7 @@
 #
 # Copyright (C) 2001, David M. Beazley
 #
-# $Header: /home/esr/WWW/mad/RCS/yacc.py,v 1.2 2004/01/20 20:39:32 esr Exp esr $
+# $Header: /home/esr/WWW/mad/RCS/yacc.py,v 1.3 2004/01/27 08:37:17 esr Exp esr $
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -238,7 +238,7 @@ class Parser:
                     sym.type = pname       # Production name
                     sym.value = None
                     if debug > 1:
-                        sys.stderr.write("%-60s reduce %s\n" % (errorlead, sym.type))
+                        sys.stderr.write("%-60s reduce %d\n" % (errorlead, -t))
 
                     if plen:
                         targ = symstack[-plen-1:]