Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: -- (:)
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.