2009/2/14 Paul McGuire <pt...@austin.rr.com> > -----Original Message----- > From: Emad Nawfal (عماد نوفل) [mailto:emadnaw...@gmail.com] > Sent: Saturday, February 14, 2009 8:59 AM > To: Paul McGuire > Cc: tutor@python.org > Subject: Re: [Tutor] extracting phrases and their memberships from syntax > > > Thank you so much Paul, Kent, and Hoftkamp. > I was asking what the right tools were, and I got two fully-functional > scripts back. Much more than I had expected. > > I'm planning to use these scripts instead of the Perl one. I've also > started > with PyParsing as it seems to be a little easier to understand than PLY. > > <snip> > --------------------------- > Glad to help - actually, I sent 2 working scripts, and Kent sent 1, so I > count THREE fully-functional scripts! ;) Also, Kent's recursive example > code for traversing the returned parse tree should also work with the data > structure that the pyparsing example returns. > > Please make use of the pyparsing samples and documentation available at the > pyparsing wiki - pyparsing.wikispaces.com. Also, if you use the Windows > binary or easy_install installations, you don't get the help and example > directories - download the source ZIP distribution, and you get a lot more > helpful information. > > -- Paul > > Thanks Paul. Yesterday I downloaded PyParsing and downloaded "Getting Started with Pyparsing" from O'Reilly. It is really good. What I like most about Pyparsing is that it is very easy to understand. Suitable for an ever-amateur like me. This is all I can say. I have no means of telling what the difference between it and PLY is.
-- لا أعرف مظلوما تواطأ الناس علي هضمه ولا زهدوا في إنصافه كالحقيقة.....محمد الغزالي "No victim has ever been more repressed and alienated than the truth" Emad Soliman Nawfal Indiana University, Bloomington http://emnawfal.googlepages.com --------------------------------------------------------
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor