Re: When %dprec and %merge aren't enough...

2008-11-14 Thread Marcel Laverdet
This is a pretty good idea, but I'm not sure if it's possible. For instance in the case of an if statement I modified my grammar as such: if_statement: t_IF t_LPAREN expression t_RPAREN {yyexpect_statement;} statement t_ELSE statement <...> | t_IF t_LPAREN expression t_RPAREN {yyexpe

Re: When %dprec and %merge aren't enough...

2008-11-14 Thread Hans Aberg
On 14 Nov 2008, at 19:35, Marcel Laverdet wrote: This is a pretty good idea, but I'm not sure if it's possible. For instance in the case of an if statement I modified my grammar as such: if_statement: t_IF t_LPAREN expression t_RPAREN {yyexpect_statement;} statement t_ELSE statement <.