Re: help with bison

Поиск
Список
Период
Сортировка
От Gavin Sherry
Тема Re: help with bison
Дата
Msg-id Pine.LNX.4.21.0204111242200.22655-100000@linuxworld.com.au
обсуждение исходный текст
Ответ на Re: help with bison  (Bear Giles <bgiles@coyotesong.com>)
Список pgsql-hackers
On Wed, 10 Apr 2002, Bear Giles wrote:

> > In fact, my grammar currently has an obscene
> > 20 shift/reduce and 4 reduce/reduce conflicts!
> 
> A shift/reduce conflict, IIRC, usually indicates a situation where
> the grammar is unambiguous but may be inefficient.  Eliminating them
> is nice, but not critical.

This is not correct. A shift/reduce conflict is where the grammar is
ambiguous.

> 
> A R/R conflict, in contrast, is a point where the grammar is ambiguous
> and you *must* fix it.

A reduce/reduce conflict is where there is more than one rule which could
be used for the reduction of the grammar.

Gavin



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bear Giles
Дата:
Сообщение: Re: help with bison
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: help with bison