[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: extended basic grammar problem
On Wed, 14 Jan 2004 paul-rene.jorgensen@telenor.com wrote:
> Hi,
>
> I have this shift/reduce conflict that I have trouble fixing. Any of you that can see how I can avoid this?
>
> shift/reduce conflict in state [stack: XTNewLine *] on TNewLine in {
> [ PStatement = * ] followed by TNewLine (reduce),
> [ XTNewLine = XTNewLine * TNewLine ] (shift)
> }
This means that one of the alternatives for statement allows the empty
string. You need to remove that possibility. i tried to look for the
offending statement, but haven't succeeded yet.
pat