From: Eric S. Raymond Date: Tue, 10 Feb 2004 22:34:03 +0000 (+0000) Subject: Use dot rather than caret as a position marker. X-Git-Tag: 1.0~120 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=f2654e936e1b4d26c6d6c53b88d0a6bc850cd340;p=mad.git Use dot rather than caret as a position marker. --- diff --git a/yacc.py b/yacc.py index 86b646b..ac1f486 100644 --- 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.3 2004/01/27 08:37:17 esr Exp esr $ +# $Header: /home/esr/WWW/mad/RCS/yacc.py,v 1.4 2004/02/10 22:26:00 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 @@ -201,7 +201,7 @@ class Parser: lookahead = YaccSymbol() lookahead.type = '$' if debug: - errorlead = ("%s ^ %s" % (" ".join([xx.type for xx in symstack][1:]), str(lookahead))).lstrip() + errorlead = ("%s . %s" % (" ".join([xx.type for xx in symstack][1:]), str(lookahead))).lstrip() # Check the action table s = statestack[-1]