From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA21439 for caml-redistribution; Tue, 27 May 1997 13:29:03 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA06369; Mon, 26 May 1997 19:36:03 +0200 (MET DST) From: Xavier Leroy Message-Id: <199705261736.TAA06369@pauillac.inria.fr> Subject: Re: ocamlyacc question In-Reply-To: <199705261710.KAA27658@blaze.accessone.com> from Dwight VandenBerghe at "May 26, 97 10:13:11 am" To: dwight@pentasoft.com (Dwight VandenBerghe) Date: Mon, 26 May 1997 19:36:03 +0200 (MET DST) Cc: caml-light@pauillac.inria.fr MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: weis > Is it possible to export a function from an ocamlyacc parser for use > by another component of a compiler? I have a function in parser.mly > that I wish to use elsewhere, but the only way I can find to export it > is to massage the generated parser.mli file with sed in my makefile. There's currently no simple way (other than changing the generated .mli) to export the function. Perhaps you could move the function in question to another module. Regards, - Xavier Leroy