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

Re: How to interperet error messages



Thanks for the reference.... they have been helpful.

In the error message I get, like the one below, sometimes there are lables of the form
P$Blank.  Is there a way to know exactly what the P$Blank refers to so I can look back in 
my grammar & find where the offending line is? 

reduce/reduce conflict in state [stack: P$Blank TBlank *] on TIdentifier in {
	[ P$Blank = P$Blank TBlank * ] followed by TIdentifier (reduce),
	[ P$Blank = TBlank * ] followed by TIdentifier (reduce)


----- Original Message -----
From: Etienne Gagnon <gagnon.etienne_m@uqam.ca>
Date: Wed, 04 Feb 2004 16:40:35 -0500
To: Roger Pomeroy <rogerandsue@mail.com>
Subject: Re: How to interperet error messages

> Hi Roger,
> 
> Have a look at:
> http://www.sable.mcgill.ca/listarchives/sablecc-list/msg00238.html
> 
> Etienne
> 
> Roger Pomeroy wrote:
> > I would like some help in interpereting the error output.  Specifically, what tips can you give on locating the statments in the input grammar that are causing the reduce/reduce conflict?  
> > 
> > Thanks!
> > 
> > Roger
> > 
> > 
> > java.lang.RuntimeException: 
> > 
> > reduce/reduce conflict in state [stack: PName TLPar *] on TComma in {
> > 	[ PActualParamList = * ] followed by TComma (reduce),
> > 	[ PRelational = * ] followed by TComma (reduce)
> > }
> > 
> 
> -- 
> Etienne M. Gagnon, Ph.D.             http://www.info.uqam.ca/~egagnon/
> SableVM:                                       http://www.sablevm.org/
> SableCC:                                       http://www.sablecc.org/
> 

-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm