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 RAA06419 for caml-redistribution; Fri, 18 Jun 1999 17:40:23 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id HAA00921 for ; Fri, 18 Jun 1999 07:49:47 +0200 (MET DST) Received: from maxime.u-strasbg.fr (maxime.u-strasbg.fr [130.79.75.36]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id HAA25362 for ; Fri, 18 Jun 1999 07:49:46 +0200 (MET DST) Received: (from luther@localhost) by maxime.u-strasbg.fr (8.8.7/8.8.7) id HAA02109; Fri, 18 Jun 1999 07:51:14 +0200 (MET DST) Message-ID: <19990618075114.A29940@maxime.u-strasbg.fr> Date: Fri, 18 Jun 1999 07:51:14 +0200 From: Sven LUTHER To: Patrick Goldbronn - SYSCO , caml Inria Subject: Re: Stub between Ocaml and C : camlidl or swig Reply-To: luther@dpt-info.u-strasbg.fr References: <3768C24A.96C2601F@cea.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2 In-Reply-To: <3768C24A.96C2601F@cea.fr>; from Patrick Goldbronn - SYSCO on Thu, Jun 17, 1999 at 11:39:22AM +0200 Sender: weis On Thu, Jun 17, 1999 at 11:39:22AM +0200, Patrick Goldbronn - SYSCO wrote: > Hi, > > I'd like to know if someone has worked on automatically generation of > stub file between ocaml and C code. > > I don't want something like camlidl (which is to strict for my purpose), > but something more simple and pliant (as swig : > http://www.cs.utah.edu/~beazley/SWIG). > > My goal is very specific so I'm interested even if the work is specific > to !! > > I ask this before to write my own generator (if someone has already made > the same) I have the begining of a C header parser that i intent to use to generate the mlgtk stubs. It is entirely written in caml, and is under the GPL, if you are interrested, tell me. Up to now, it parses the headers and put them in a big list. My plan was to generate the bindings with this lists. I have some ideas on how to do it automatically for most C constructs, other could cause problems. If you are interrested, i can do a website for it, separate from mlgtk, or also send it to you. Friensly, Sven LUTHER