Re: [PATCHES] [HACKERS] parser dilemma

2007-04-25 Thread Zoltan Boszormenyi
Tom Lane írta: Andrew Dunstan <[EMAIL PROTECTED]> writes: Tom Lane wrote: So I think attaching a precedence to the GENERATED keyword is dangerous. Especially when we have a good workaround which would just require use of () around certain postfix-operator expressions.

Re: [PATCHES] [HACKERS] parser dilemma

2007-04-22 Thread Tom Lane
Andrew Dunstan <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> So I think attaching a precedence to the GENERATED keyword is dangerous. > Especially when we have a good workaround which would just require use > of () around certain postfix-operator expressions. Yeah, I'm leaning to the idea th

Re: [PATCHES] [HACKERS] parser dilemma

2007-04-22 Thread Andrew Dunstan
Tom Lane wrote: So I think attaching a precedence to the GENERATED keyword is dangerous. Especially when we have a good workaround which would just require use of () around certain postfix-operator expressions. cheers andrew ---(end of broadcast)

Re: [PATCHES] [HACKERS] parser dilemma

2007-04-21 Thread Tom Lane
Zoltan Boszormenyi <[EMAIL PROTECTED]> writes: > Tom Lane írta: >> [ a bit alarmed... ] This is only going to be an acceptable solution >> if you can explain *exactly why* it works. The general story with >> associativity/precedence declarations is that you are making bison >> resolve ambiguous s

Re: [PATCHES] [HACKERS] parser dilemma

2007-04-21 Thread Zoltan Boszormenyi
Tom Lane írta: Zoltan Boszormenyi <[EMAIL PROTECTED]> writes: Andrew Dunstan írta: Zoltan Boszormenyi wrote: On the other hand, marking GENERATED as %right solves this issue. I hope it's an acceptable solution. If anything I should have thought it would be marked %nona

Re: [PATCHES] [HACKERS] parser dilemma

2007-04-21 Thread Tom Lane
Zoltan Boszormenyi <[EMAIL PROTECTED]> writes: > Andrew Dunstan írta: >> Zoltan Boszormenyi wrote: >>> On the other hand, marking GENERATED as %right >>> solves this issue. I hope it's an acceptable solution. >> >> If anything I should have thought it would be marked %nonassoc. > That works, too.

Re: [PATCHES] [HACKERS] parser dilemma

2007-04-21 Thread Zoltan Boszormenyi
Andrew Dunstan írta: Zoltan Boszormenyi wrote: On the other hand, marking GENERATED as %right solves this issue. I hope it's an acceptable solution. If anything I should have thought it would be marked %nonassoc. cheers andrew That works, too. Best regards, Zoltán Böszörményi -- ---

Re: [PATCHES] [HACKERS] parser dilemma

2007-04-20 Thread Andrew Dunstan
Zoltan Boszormenyi wrote: On the other hand, marking GENERATED as %right solves this issue. I hope it's an acceptable solution. If anything I should have thought it would be marked %nonassoc. cheers andrew ---(end of broadcast)--- TIP 1: if p

Re: [PATCHES] [HACKERS] parser dilemma

2007-04-20 Thread Zoltan Boszormenyi
Zoltan Boszormenyi írta: Martijn van Oosterhout írta: On Thu, Apr 19, 2007 at 11:19:40AM +0200, Zoltan Boszormenyi wrote: The problem comes from cases like colname coltype DEFAULT 5! GENERATED ... Since b_expr allows postfix operators, it takes one more token of lookahead than we have t