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

Re: Redefinition of AIdentList (solved)



Hi all!

I found both of these in my grammar, and problem is solved
by fixing them.

Thanks a lot,
Mikko

S'orlok Reaves wrote:
> Memory fails; it's one of two things. Productions with
> more than one alternative must be named. For instance:
>   move = general_movement | move_switch_on; 
> ...fails, but:
>   move = {general} general_movement | {switch_on}
> move_switch_on; 
> ...works. Or, within a production, duplicate tokens
> have name collisions:
>    anary = rpg_int rpg_int rpg_int ;
> ...fails, and the following works:
>    anary = [depth]:rpg_int [len]:rpg_int [num]:rpg_int
> ;
> 
> I think it's the first one.
> (->SR
> 
> 
> 
> --- Mikko Vulli <mikko.vulli@xxxxxx> wrote:
> 
>> Hi all!
>> Do you have any ideas what might cause the following
>> error message?
>> It's a bit hard to figure out for me because there
>> is no line number or
>> other similar information. Errormessage copied
>> below:
>>
>>   [sablecc]  -- Generating parser for xxx.grammar in
>> ~/tmp
>>   [sablecc] Adding productions and alternative of
>> section AST.
>>   [sablecc] Verifying identifiers.
>> SableCC failed.
>> [0,0] Redefinition of AIdentList.
>>
>>
>> BR, Mikko
>> -- 
>> Mikko Vulli    mikko.vulli@xxxxxx  044-3246742
>>
>> "It never gets easier,                          __o
>>  you just go faster."                         _`\(,_
>>  -Greg LeMond   ____________________________ (_)/
>> (_)________________
>>
>> _______________________________________________
>> SableCC-user mailing list
>> SableCC-user@xxxxxxxxxxx
>>
> http://sablecc.org/lists/control/listinfo/sablecc-user
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 


-- 
Mikko Vulli    mikko.vulli@xxxxxx  044-3246742
Tampere University of Technology / Software Engineering

"It never gets easier,                          __o
 you just go faster."                         _`\(,_
 -Greg LeMond   ____________________________ (_)/ (_)________________