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 SAA05642 for caml-redistribution; Mon, 29 Dec 1997 18:58:36 +0100 (MET) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA02742 for ; Mon, 29 Dec 1997 15:49:29 +0100 (MET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.8.7/8.8.5) with ESMTP id PAA28269; Mon, 29 Dec 1997 15:49:24 +0100 (MET) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA02738; Mon, 29 Dec 1997 15:49:23 +0100 (MET) From: Xavier Leroy Message-Id: <199712291449.PAA02738@pauillac.inria.fr> Subject: Re: How to use camllex and camlyacc from camlwin In-Reply-To: <2de86ea.34a18a77@aol.com> from Marucita at "Dec 24, 97 05:19:33 pm" To: Marucita@aol.com (Marucita) Date: Mon, 29 Dec 1997 15:49:22 +0100 (MET) Cc: caml-list@inria.fr MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: weis > I need to know how to compile and use camllex and camlyacc files from > the PC version of camllight. > I've been trying to do it, and the only thing that worked was manually > from DOS prompt... camlyacc and camllex are command-line tools, so the most natural way to use them is indeed from a DOS shell, or (better) a Makefile. Still, you can invoke them from the Caml graphical user interface using the sys__system_command function. E.g.: cd "\\the\\right\\directory";; sys__system_command "camllex mylexer.mll";; compile "mylexer.ml";; load_object "mylexer.zo";; Yet another alternative is to use streams instead of camllex and camlyacc. Regards, - Xavier Leroy