[pypy-dev] undefined symbol in ParserGenerator
Benjamin Peterson
benjamin at python.org
Mon Apr 19 04:13:13 CEST 2010
2010/4/18 Terrence Cole <list-sink at trainedmonkeystudios.org>:
> In pypy/interpreter/pyparser/metaparser.py in get_first on line 233:
> the name 'symbol' is undefined.
>
> I hit this when parsing the python grammar from the 3.1.2 release.
> Oddly, the current py3k trunk does not hit this. I'll dig more to see
> if I can figure out why the grammar is causing this, but the error
> handling here is obviously bogus, so I thought I'd go ahead and report
> it.
This is because the 3.1.2 grammar is incorrect, and CPython's parser
generator accepts it. See
http://svn.python.org/view?view=rev&revision=75080. It's safe to use
the py3k branch one, since it hasn't changed.
--
Regards,
Benjamin
More information about the Pypy-dev
mailing list