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

Centaur and Yacc




=>  Now we have more than 600 grammar rules which is more than YACC
=>  can accept.Is there a solution for our problem

I ran into the same problem when compiling a Metal description for the
Fortran 77 language, and the solution I have found was to recompile
YACC after defining a greater number of states (by changing #define
NSTATES 600).

I could do that only because I had the sources of YACC available.
Maybe you could try to use BISON instead, which is the YACC clone
provided by the FSF (GNU project), but that may require a bit of
hacking. However, the sources for BISON are freely available, and you
should be able to ftp them from inria.inria.fr.

Gregory Popovitch					
GIPSI S.A.					email: gregory@gipsi.gipsi.fr
Immeuble "Le Florestan"				phone: (33) (1) 30 60 75 66
2, Bd Vauban - BP 268				fax:   (33) (1) 30 60 75 90
78053 St Quentin en Yvelines Cedex		telex: 699 262 F
FRANCE