[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shift/Reduce and Reduce/Reduce conflicts.



Hi Fidel,

look at:
http://www.sable.mcgill.ca/listarchives/sablecc-list/msg00212.html
http://www.sable.mcgill.ca/listarchives/sablecc-list/msg00238.html

Etienne

fidel viegas wrote:
> 
> Hi!
> Is there any documentation regarding the interpretation of the conflicts
> that may urge in the design of the grammar under SableCC?
> I had some conflicts messages, but I don't know how to interpret them. I
> could solve them by looking at the books, but the way the message is
> expressed is to complicated. How do we interpret them. For example, In the
> following production
> 
> If_statement =
>   {If_stmt} if expression then statement |
>   {If_then_else} if expression then statement else statement ;
> 
> This generates a shift/reduce conflict in sablecc. How can we interpret the
> message issued by SableCC?
> Regards,
> Fidel Viegas.
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com

-- 
----------------------------------------------------------------------
Etienne M. Gagnon, M.Sc.                     e-mail: egagnon@j-meg.com
Author of SableCC:                 http://www.sable.mcgill.ca/sablecc/
----------------------------------------------------------------------