Re: [PhillyPUG] Grammar in python

From: Andrew G.
Sent on: Thursday, November 18, 2010 3:44 PM
That should have said, "Personally, I'd try"

On Thu, Nov 18, 2010 at 3:44 PM, Andrew Gwozdziewycz <[address removed]> wrote:
Personally, try and use the packrat parsing library, pyparsing, if possible:��http://pyparsing.wikispaces.com/

Though, if you're already familiar with (f)lex and yacc/bison, then Spark might be appropriate

On Thu, Nov 18, 2010 at 2:33 PM, Jason Stelzer <[address removed]> wrote:
Cool. I'll let you know how the ircbot progresses. :)

On Thu, Nov 18, 2010 at 2:05 PM, Tom Panzarella <[address removed]> wrote:
> J-
>
> I'm not familiar with those tools, sorry. However, if you get something working with those, I'd be interested in learning more.
>
> -Tom.
>
> On Nov 18, 2010, at 12:38 PM, Jason Stelzer wrote:
>
>> I'm doing some stuff that I think lends itself more to a grammar than
>> regular expressions.
>>
>> I have never tried to create a grammar for a program in python. Has
>> anyone used SimpleParse ��or SPARK?
>>
>> I think a pluggable grammar in my app will help make it easier to
>> support parsing wiki pages vs IRC chatter vs xmlrpc jira data. If I
>> create a couple stub apps that know how to collect data from different
>> sources, then at it's core I'll just be dealing with input streams. At
>> that point, a parser to scan and tokenize the input streams makes it
>> easier to share across applications.
>>
>> --
>> J.
>>
>>
>>
>> --
>> Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
>> http://www.meetup.com/phillypug/
>> This message was sent by Jason Stelzer ([address removed]) from The Philadelphia Python Users Group (PhillyPUG).
>> To learn more about Jason Stelzer, visit his/her member profile: http://www.meetup.com/phillypug/members/11592623/
>> To unsubscribe or to update your mailing list settings, click here: http://www.meetup.com/phillypug/settings/
>> Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]
>>
>
>
>
>
> --
> Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
> http://www.meetup.com/phillypug/
> This message was sent by Tom Panzarella ([address removed]) from The Philadelphia Python Users Group (PhillyPUG).
> To learn more about Tom Panzarella, visit his/her member profile: http://www.meetup.com/phillypug/members/1127918/
> To unsubscribe or to update your mailing list settings, click here: http://www.meetup.com/phillypug/settings/
> Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]
>
>



--
J.



--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
http://www.meetup.com/phillypug/
This message was sent by Jason Stelzer ([address removed]) from The Philadelphia Python Users Group (PhillyPUG).
To learn more about Jason Stelzer, visit his/her member profile: http://www.meetup.com/phillypug/members/11592623/
To unsubscribe or to update your mailing list settings, click here: http://www.meetup.com/phillypug/settings/
Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]




--
http://www.apgwoz.com



--
http://www.apgwoz.com

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy