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

Re: Redefinition of AIdentList



Hi Mikko,

This is a problem that appeared (by error) in SableCC 3.x.  (Will be
solved in 4.x)

A simple solution:
1. Debug your parsing grammar (without any CST->AST transformation)
using SableCC 2.x.
2. Once your grammar is accepted by SableCC 2.x, switch back to SableCC
3.x for generating code and doing tree transformations.

Have fun!

Etienne

Mikko Vulli 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

-- 
Etienne M. Gagnon, Ph.D.                             egagnon@xxxxxxxxx
President                                      http://www.sablevm.org/
J-Meg inc.                                     http://www.sablecc.org/

Attachment: signature.asc
Description: OpenPGP digital signature