addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1linklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Grammar in python

From: user 1.
Sent on: Thursday, November 18, 2010 12:38 PM
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.


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