Re: More fun with PyParsing - almost did it on my own..

2008-05-14 Thread Paul McGuire
On May 14, 6:07 pm, rh0dium <[EMAIL PROTECTED]> wrote: > Hi all, > > I almost did my first pyparsing without help but here we go again. > Let's start with my code.  The sample data is listed below. > > > > x =  cells.parseString(data) > print x[0].asDict() > > reveals > {'pins': ([(['A', 'Input'],

More fun with PyParsing - almost did it on my own..

2008-05-14 Thread rh0dium
Hi all, I almost did my first pyparsing without help but here we go again. Let's start with my code. The sample data is listed below. # This will gather the following ( "NamedPin" "PinDirection" "OptionalSignal" ) guts = Group( LPAR.suppress() + quotedString.setParseAction(removeQuotes).setResul