[antlr-interest] Bug in antlr.py (Python runtime module)
Benjamin Niemann
pink at odahoda.de
Wed Apr 27 10:34:50 PDT 2005
Hello,
I just started to use my favourite parser generator with my favourite
programming language ;)
Here's a small bug that a have found:
In antlr.py from 2.7.5, line 242-250
-----------------------------------------------------------------------
sb.append("expecting char ")
if self.mismatchType == MismatchedCharException.NOT_RANGE:
sb.append("NOT ")
sb.append("in range: ")
appendCharName(sb, self.expecting)
sb.append("..")
appendCharName(sb, self.upper)
sb.append(", found ")
appendCharName(sb, self.foundChar)
-----------------------------------------------------------------------
This should be 3*'self.appendCharName' (as it is correctly done a few lines
above and below).
The FAQ says that I should post bug reports in the jGuru forum, but I'm not
in the mood today to register on just another website and I'm working on a
slow computer where browsing website with flash ads is quite a pain. I
could also directly mail to one of the 'antlr for python' maintainers.
What's the preferred way? (Only if I find more issues or course ;)
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/
More information about the antlr-interest
mailing list