Nice job Andrew, looks really good.
Would it be okay if I use it to fill in my missing parts?
One thing though, it doesn't like statements that don't end with new-line,
and throws a very non-indicative exception:
>>> python_yacc.parse("a=1")
...
AttributeError: 'PythonLexer' object has no attribute 'filename'
Should be an easy fix.
And Bruce, thanks again, it really helped me understand.
- Erez
On Thu, Jun 11, 2009 at 5:05 PM, Andrew Dalke <[email protected]>wrote:
>
> On Jun 10, 2009, at 7:11 PM, Erez wrote:
> > I've been trying to write a parser for python for my personal
> > enjoyment. I'm aware that it's hard.
>
> BTW, if you haven't seen it yet, I have a Python grammar definition for PLY
> at
>
> http://www.dalkescientific.com/Python/python4ply.html
>
> Andrew
> [email protected]
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ply-hack" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ply-hack?hl=en
-~----------~----~----~----~------~----~------~--~---