Re: [Pyparsing] expression not greedy enough
Brought to you by:
ptmcg
From: Paul M. <pt...@au...> - 2009-08-26 04:34:54
|
Still no joy in the attachments. Try just including the text in the body of your e-mail. Or use pyparsing.pastebin.com. -- Paul > -----Original Message----- > From: Diez B. Roggisch [mailto:de...@we...] > Sent: Tuesday, August 25, 2009 12:32 PM > To: Pyp...@li... > Subject: [Pyparsing] expression not greedy enough > > Hi, > > I'm in the process of writing a CSS-parser - and encountered a behavior > that I > don't understand. > > The attached file shows it - I expect the expression > > 0 100px > > to be parsed as two tokens, a NUMBER and an LENGTH. > > But instead, it seems to be parsed as NUMBER, NUMBER, IDENT. > > The second test-case shows that if there is only one sub-expression, > things > work as expected. > > Any suggestions? > > Diez |