]> thyrsus.com Git - mad.git/commitdiff
Use dot rather than caret as a position marker.
authorEric S. Raymond <esr@thyrsus,com>
Tue, 10 Feb 2004 22:34:03 +0000 (22:34 +0000)
committerEric S. Raymond <esr@thyrsus,com>
Tue, 10 Feb 2004 22:34:03 +0000 (22:34 +0000)
yacc.py

diff --git a/yacc.py b/yacc.py
index 86b646b3e43e7d3fd1ab7c71e9d5ae5fcf68e683..ac1f486ebb2d2b80ea60bd8769215fff57be803e 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.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]