Re: [Pyparsing] multiple tokens but no repeats
Brought to you by:
ptmcg
From: W. M. B. <de...@de...> - 2007-11-20 17:23:38
|
On Tue, Nov 20, 2007 at 03:24:34PM +0000, Tim Grove wrote: > I'm trying to represent the logic that I wish to match 0 or more tokens, > up to a maximum of 4 tokens, but I don't want any repeats of tokens > already matched within the group of 4. How could I do that? I would try setParseAction(), i.e. match 0 to 4 tokens and check myself for duplication. |