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

Re: How to read error messages



Well, the error message shows you have a production called arguments_list.
this production is, however, empty: arguments_list = ;

this can never be right, so I suggest you look at that production
(probably you can leave it out)


> Hi,
>
> I am writing a grammer for an interpreter. I get following error message
> when I try to generate the code. Can somebody help me interpret this
> message.
>
> Thanks
>
> -Ali
>
> reduce/reduce conflict in state [stack: TLSquareBracket TIdentifier *] on
> TRSqua
> reBracket in {
>         [ PArgumentsList = * ] followed by TRSquareBracket (reduce),
>         [ POutputVariables = TIdentifier * ] followed by TRSquareBracket
> (reduce
> )
> }
> java.lang.RuntimeException:
>
> reduce/reduce conflict in state [stack: TLSquareBracket TIdentifier *] on
> TRSqua
> reBracket in {
>         [ PArgumentsList = * ] followed by TRSquareBracket (reduce),
>         [ POutputVariables = TIdentifier * ] followed by TRSquareBracket
> (reduce
> )
>


-------------------

Pieter van der Spek
---- West Consulting B.V.        - www.west.nl
---- Tu Delft / Computer Science - www.tudelft.nl