[Haskell-cafe] Operator precedence and associativity with Polyparse

2011-10-25 Thread Tom Hawkins
Hi, Can someone provide guidance on how handle operator precedence and associativity with Polyparse? Thanks in advance. -Tom ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Operator precedence and associativity with Polyparse

2011-10-25 Thread Ivan Lazar Miljenovic
On 26 October 2011 06:37, Tom Hawkins wrote: > Hi, > > Can someone provide guidance on how handle operator precedence and > associativity with Polyparse? Do you mean parsing something like "1 + 2 * 3" ? I don't think there's any real difference in using Polyparse vs Parsec for this, except for d

Re: [Haskell-cafe] Operator precedence and associativity with Polyparse

2011-10-25 Thread Tom Hawkins
>> Can someone provide guidance on how handle operator precedence and >> associativity with Polyparse? > > Do you mean parsing something like "1 + 2 * 3" ?  I don't think > there's any real difference in using Polyparse vs Parsec for this, > except for doing "p `orElse` q" rather than "try p <|> q"

Re: [Haskell-cafe] Operator precedence and associativity with Polyparse

2011-10-25 Thread Ivan Lazar Miljenovic
On 26 October 2011 10:49, Tom Hawkins wrote: >>> Can someone provide guidance on how handle operator precedence and >>> associativity with Polyparse? >> >> Do you mean parsing something like "1 + 2 * 3" ?  I don't think >> there's any real difference in using Polyparse vs Parsec for this, >> excep

Re: [Haskell-cafe] Operator precedence and associativity with Polyparse

2011-10-26 Thread Christian Maeder
Am 26.10.2011 01:49, schrieb Tom Hawkins: Can someone provide guidance on how handle operator precedence and associativity with Polyparse? Do you mean parsing something like "1 + 2 * 3" ? I don't think there's any real difference in using Polyparse vs Parsec for this, except for doing "p `orEl