English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Limitations on $n in ocamlyacc?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-05-27 (09:02)
From: Alex Baretta <alex@b...>
Subject: Re: [Caml-list] Limitations on $n in ocamlyacc?
Alex Baretta wrote:
> What is the limit on the number of token values accessible with the $n
> notation in ocamlyacc semantic actions? I'm asking because I'm
> consistently getting ocamlyacc errors like the following, which I can't
> make sense of.
> ocamlyacc: e - line 96 of "xcaml_dictionary_yacc.mly", $5 is unbound

The obvious answer is...

The was one unterminated semantic actions tens of lines above the spot
where the ocamlyacc was unable to proceed. Casually, the syntax
production contained 4 symbols; hence, the unbound $5...


Baretta DE&IT
A division of Baretta SRL

tel. +39 02 370 111 55
fax. +39 02 370 111 54

Our technology:

The Application System/Xcaml (AS/Xcaml)

The FreerP Project