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
Additional exports from ocamlyacc-generated module?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-04-22 (14:02)
From: Mathias Kende <mathias@k...>
Subject: Re: [Caml-list] Additional exports from ocamlyacc-generated module?

Richard Cobbe a écrit :
> Is it possible to mark definitions in an .mly file as "public," so that
> they're listed in the generated .mli file?

I usually have a rule in my makefiles that destroys the .mli files created by ocamlyacc 
and creates a new one with "ocamlc -i" which include the function definition of the header 
(and then there is an automatic filtering to expose only some functions).
But there is no way to instruct ocamlyacc to do so to my knowledge, because it is a C 
program which does not understand the Caml part of the header.

Mathias