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

Re: Redefinition Error



Hi Will,

> Will Hartung wrote:
>... No matter what I put after "goal", I get a redefinition error.
>... In this case, I get a Redifinition of ADefines.
>...
> Productions
> /*
>  goal = rslscript;
>  rslscript = defines*;
> */
>  goal = defines*;
> 
> 
>  defines =
>   defineevent_stmt |
>   definestring_stmt |
>   defineqset_stmt |
>   defineqbatch_stmt |
>   definevar_stmt;


You have to give "names" to each alternative of the "defines"
production:

defines =
 {event} defineevent_stmt |
 {string} definestring_stmt |
...

Good luck!

Etienne
P.S.:  Please send "plain text" messages on the mailing list (instead of
HTML formatted messages).  Thanks.
-- 
----------------------------------------------------------------------
Etienne M. Gagnon, M.Sc.                     e-mail: egagnon@j-meg.com
Author of SableCC:                 http://www.sable.mcgill.ca/sablecc/
and SableVM:                                   http://www.sablevm.org/
----------------------------------------------------------------------