<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 13 July 2013 23:26, David Beazley <span dir="ltr"><<a href="mailto:dave@dabeaz.com" target="_blank">dave@dabeaz.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="word-wrap:break-word">I'm in favor of PLY going into stdlib with the caveat that there are some things about it that should probably be cleaned up and modernized. For instance, the method by which it writes the cached parsing tables needs to be cleaned up. I still think putting the LALR(1) generator code into a common library usable by both PLY/RPLY would be a useful thing to do. That code is really hairy and non-trivial to understand without something like the Dragon book nearby (and even then it's not easy). <div>
<br></div><div>So, if I were to make any kind of proposal, I would say, make a standard library module for just the LALR(1) generator code. If the PLY interface is needed to add pycparser or cffi to the standard library, that can be added too, but as a separate module that uses the more general LALR(1) library.<br>
</div></div></blockquote><div><br></div><div>lrparsing is a more recent entry in the LR parsing stakes:<a href="https://pypi.python.org/pypi/lrparsing">https://pypi.python.org/pypi/lrparsing</a> (although, as Russell put it in his PyCon AU lightning talk, if PLY had shown up ranked higher than 506 in his PyPI search for "parser", he probably would have just used that: <a href="http://pyvideo.org/video/2222/sunday-lightning-talks">http://pyvideo.org/video/2222/sunday-lightning-talks</a> at about 2:15)<br>
<br></div><div>(I plan to bug Russell about putting that up on one of the DVCS hosting sites next time I see him at BrisPy - for the moment, the source is available through the tarball/sdist)<br></div></div><br></div><div class="gmail_extra">
Cheers,<br>Nick.<br clear="all"></div><div class="gmail_extra"><br>-- <br>Nick Coghlan | <a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a> | Brisbane, Australia
</div></div>