From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id 6DDD57EEAF for ; Mon, 28 Jan 2013 01:22:16 +0100 (CET) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of wojciech.meyer@gmail.com) identity=pra; client-ip=209.85.212.175; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="wojciech.meyer@gmail.com"; x-sender="wojciech.meyer@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of wojciech.meyer@gmail.com designates 209.85.212.175 as permitted sender) identity=mailfrom; client-ip=209.85.212.175; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="wojciech.meyer@gmail.com"; x-sender="wojciech.meyer@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-wi0-f175.google.com) identity=helo; client-ip=209.85.212.175; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="wojciech.meyer@gmail.com"; x-sender="postmaster@mail-wi0-f175.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuABAEHDBVHRVdSvk2dsb2JhbABFhX+4YhYOAQEBAQkJCwkUBCOCHgEBBAFAARsdAQMBCwYFCxYlDwEEDQIRAQUBIhOHfgEDCQYECKEPjDOCe4NpChknDVmIdgEFDIwEhRADlDeBVoEcihqDMT+EGQ X-IronPort-AV: E=Sophos;i="4.84,548,1355094000"; d="scan'208";a="169694900" Received: from mail-wi0-f175.google.com ([209.85.212.175]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 28 Jan 2013 01:22:16 +0100 Received: by mail-wi0-f175.google.com with SMTP id hq12so501610wib.14 for ; Sun, 27 Jan 2013 16:22:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=MWuLJyvpb9kpb8rF5WlJaS4rlpw1PeBJ4dOErIMnyJ4=; b=Llzft8xl77VtjJ9mTPDoB4QMBmwxvI4ZWcrixgVSwJH1u1gDuds9fbiyF8WLrTSsbR HZBvZQXLhOO32XtMuC7ps7b3lhKwlyxYFANlWhQawTGnH2sra410xeg51Mf0+auAiZi1 UOsKbgyeK449eDWIUQYHRYXrak4bGEzLccitEH4zBD9NgYc3thaBffwxDpPICxXkQlwj Tmjb96NWdkvHFpc05OGxh7ysAu67+kA15vm+w1z26RAUiojGuOu1/d9mvryh7JpX02mM aBPmoQS0KIno2tLsbJIdwZp57ryjXJ9Q5BEZuOaGW5eJSuZbN88LorBB55M/PBQqeyg3 wPiQ== X-Received: by 10.180.88.40 with SMTP id bd8mr6678017wib.33.1359332535352; Sun, 27 Jan 2013 16:22:15 -0800 (PST) Received: from spec-desktop.danmey.org (cpc1-cmbg12-0-0-cust201.5-4.cable.virginmedia.com. [86.9.116.202]) by mx.google.com with ESMTPS id bd7sm10769977wib.8.2013.01.27.16.22.13 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Sun, 27 Jan 2013 16:22:14 -0800 (PST) From: Wojciech Meyer To: Martin DeMello Cc: "caml-list\@inria.fr" References: Date: Mon, 28 Jan 2013 00:22:25 +0000 In-Reply-To: (Martin DeMello's message of "Sun, 27 Jan 2013 15:57:41 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Caml-list] If I wanted to write SWIG in OCaml, what library would I need? Martin DeMello writes: > No, I'm not planning on rewriting all of SWIG, but that was the > easiest way to explain what I wanted :) I'm looking for a library that > can work with C header files, including preprocessor directives, and > spit out a data structure that I can use to generate language > bindings. C++ support not necessary. You could just try caml-idl: http://caml.inria.fr/pub/old_caml_site/camlidl/ -- Wojciech Meyer http://danmey.org