caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Mathias Kende <mathias@kende.fr>
To: Richard Cobbe <cobbe@ccs.neu.edu>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Additional exports from ocamlyacc-generated module?
Date: Tue, 22 Apr 2008 16:03:46 +0200	[thread overview]
Message-ID: <480DF042.2000807@kende.fr> (raw)
In-Reply-To: <20080422135612.GC405@perdita.local>


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


      reply	other threads:[~2008-04-22 14:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-22 13:56 Richard Cobbe
2008-04-22 14:03 ` Mathias Kende [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=480DF042.2000807@kende.fr \
    --to=mathias@kende.fr \
    --cc=caml-list@yquem.inria.fr \
    --cc=cobbe@ccs.neu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).