Re: [Pyparsing] automatic naming of parse results?
Brought to you by:
ptmcg
From: W. M. B. <de...@de...> - 2008-04-07 16:33:47
|
On Sat, Apr 05, 2008 at 02:16:18AM -0500, Paul McGuire wrote: > Results names are tricky, but useful. Part of the nuisance of results names > is the ".setResultsName" syntax, so that is why in 1.4.7 I added support for > code like this: > > a = pyparsing.Group(b + c)("a") > > That is, I made all ParserElements callable, and __call__ calls > setResultsName. I use this variant now. It's sufficient for me. Thanks a lot! |