Re: [Pyparsing] Efficency of Keyword (and a couple other bits)
Brought to you by:
ptmcg
From: Eike W. <eik...@gm...> - 2007-03-20 16:39:57
|
Hello Paul! On Tuesday 20 March 2007 05:14, Paul McGuire wrote: > For your second question, how to get street names to not read past > the end of the street name and consume the street suffix too? > =A0Again, this is really a common issue in pyparsing grammars - there > is a canned solution, although this may cost us some parse-time > performance. You should turn that part into a FAQ: 'My Parser is Too Greedy'.=20 The first part of your very nicely worked out email could maybe get=20 into the 'Tips' section of Pyparsing's web presence: 'How to Match=20 5000 Keywords'. Slightly OT: The very helpfull 'operatorGrammar' is not mentioned in the 'usage=20 notes' (HowToUsePyparsing) page. I think you should copy the=20 informative passage from the 'news' page to the 'usage notes'. Kind regards, Eike. |