Re: [Pyparsing] Order problem in binary operation withoperationPrecedence()
Brought to you by:
ptmcg
From: Gustavo N. <me...@gu...> - 2009-07-12 11:09:17
|
Hello, Ralph. Ralph said: > `^' causes all alternatives to be tested, `|' stops at the first one > that succeeds. If using `|', unless you test for `<=' before `<' then > `<=' would never be seen because it would always look like a `<'. With > `^', I assume the longest one that succeeds is used so both `<' and `<=' > match but the latter is used. Hmm, OK, I got it now. Thank you very much for the explanation! ;-) Cheers. -- Gustavo Narea <xri://=Gustavo>. | Tech blog: =Gustavo/(+blog)/tech ~ About me: =Gustavo/about | |