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
[Caml-list] putting stuff in an ocamlyacc-generated mli file
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-10-19 (11:28)
From: Markus Mottl <markus@o...>
Subject: Re: [Caml-list] putting stuff in an ocamlyacc-generated mli file
On Fri, 19 Oct 2001, Rafael 'Dido' Sevilla wrote:
> Unfortunately, compiling the compiler with this causes it to choke
> saying that Parser.Undef_sym is not found.  It's not in the generated
> parser.mli file, of course.  So apart from editing that (automatically
> generated) file manually, how do I get ocamlyacc to put them there?

You can define the exception externally in a third file (e.g.
parser_defs.mli) to refer to it from both outside and inside the

Markus Mottl

Markus Mottl                                             markus@oefai.at
Austrian Research Institute
for Artificial Intelligence                  http://www.oefai.at/~markus
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr