Re: [Pyparsing] need help building parsing framework for disability access tool
Brought to you by:
ptmcg
From: Mario R. O. <nim...@gm...> - 2012-09-12 00:03:26
|
Eric I am by no means what you would call an expert in language definition nor python; I just had the need to use a parser for a "mini language" that sure enough, turned into an almost full fledged one. I tried about three solutions (all in python) and ended up using pyparse and loving it! I found a book on pyparse, whether it was free online or ... I'm not sure. Oh, and by the way; this tool and the book is written in a very friendly "alien" dialect. Please restate your original question as I missed your original post. I can send you some of my code if you need. Dtb/Gby ======= Mario R. Osorio "... Begin with the end in mind ..." http://www.google.com/profiles/nimbiotics On Tue, Sep 11, 2012 at 5:46 PM, Eric S.. Johansson <es...@es...>wrote: > > > ----- Original Message ----- > > From: "Paul McGuire" <pt...@au...> > > To: "Eric S.. Johansson" <es...@es...>, > pyp...@li... > > Sent: Friday, September 7, 2012 4:59:38 AM > > Subject: RE: [Pyparsing] need help building parsing framework for > disability access tool > > > > Eric - > > > > See if this gets you close: > > No matter how well somebody does your homework for you, you still need to > study to understand the basics. > > It looks like it should do what I want but I still can't quite figure it > out. The syntax of pyparsing is "different". > > My first question is how do I inject the text stream into this. Is it > using parser as a function and the text stream is the input argument? what > is returned and in what order? You tell me to use "keyword" "arg" and > "data" but I'm not grocking how yet. > > are there any good books or online documentation for really understanding > pyparser or is it one of those "written by aliens"[1] type of things? > > > Thanks > --- eric > > [1] The phrase "written by aliens" is an affectionate tease of really > brilliant people who write something so astonishingly Brilliant yet > unintelligible to mere mortals. I've been on both sides of the line. :-) > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Pyparsing-users mailing list > Pyp...@li... > https://lists.sourceforge.net/lists/listinfo/pyparsing-users > |