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

Error with very small grammar



Greetings again,

Sorry to bother again but I have tried the small Grammar exemple that Mr Gagnon have shown me which goes like this :

 

Package test;

 

Tokens

   a = 'a';

   b = 'b';

Productions

   s = a s a |

b;

 

When I run it with sablecc I obtain the following error :

Java.lang.RuntimeException : [7,12] Redefination of AS.A.

 

Can anybody tell me what I am doing wrong ?

 

Also is there someway to install sablecc under Windows XP (I tried with Ant but couldn’t build …)

Thanx a lot for your help !!