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 mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by sympa.inria.fr (Postfix) with ESMTPS id 7FCF57EEB2 for ; Mon, 28 Jan 2013 09:49:50 +0100 (CET) Received-SPF: None (mail1-smtp-roc.national.inria.fr: no sender authenticity information available from domain of david.mentre@gmail.com) identity=pra; client-ip=209.85.215.48; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="david.mentre@gmail.com"; x-sender="david.mentre@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail1-smtp-roc.national.inria.fr: domain of david.mentre@gmail.com designates 209.85.215.48 as permitted sender) identity=mailfrom; client-ip=209.85.215.48; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="david.mentre@gmail.com"; x-sender="david.mentre@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail1-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-la0-f48.google.com) identity=helo; client-ip=209.85.215.48; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="david.mentre@gmail.com"; x-sender="postmaster@mail-la0-f48.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArsCAIg6BlHRVdcwk2dsb2JhbABFhX8BuFMIFg4BAQEBCQkLCRQEI4IfAQVAATgBAwwBBQULOx8CARIBBQEcBhOHfwMPoT6PLoQkJw2JTwEFDIwEhRUDjTuGfIFWizYDgy4WKYFYgkI X-IronPort-AV: E=Sophos;i="4.84,550,1355094000"; d="scan'208";a="191616793" Received: from mail-la0-f48.google.com ([209.85.215.48]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 28 Jan 2013 09:49:50 +0100 Received: by mail-la0-f48.google.com with SMTP id fq13so604301lab.21 for ; Mon, 28 Jan 2013 00:49:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=A/M9Nwlk4SuN39gKI/ajjRxCO4vyjkHagWG86EvDc94=; b=bpatk3HhKbi/NU47+9oRdnNdN+DZV2QSn2F8LWVyq4TatUCT4s6ruo1uaUKNL0Amkl IUhis4rCy47em+EScnmhk1GE6Yj2yKogxEspfTDUmyXXF5ll91l7iBNbFLzqNMPg6F7N 0Jo6MW4NJu9PzoisXsrLi72yJSSxUbtQm/SbKnsi2JgOgYFUEJP+SmK9kapWfbcJIWOx BNnLXU5ITOIqQAwI950ZHjvWbEmFct7sAl75rxfae6iLrGWKMfzP719UbQMxlAmPwjl0 FZXyc85t22Dnm7NBcsZJFVlwJocrlGHi6QspiXDQABCeU8YLtiT2t7JDwD3Jf/9p0aV+ CkkA== X-Received: by 10.112.17.3 with SMTP id k3mr5353483lbd.42.1359362989185; Mon, 28 Jan 2013 00:49:49 -0800 (PST) MIME-Version: 1.0 Sender: david.mentre@gmail.com Received: by 10.112.135.198 with HTTP; Mon, 28 Jan 2013 00:49:18 -0800 (PST) In-Reply-To: References: From: David MENTRE Date: Mon, 28 Jan 2013 09:49:18 +0100 X-Google-Sender-Auth: -wubDqzm3uvmdVr4QsdOjkNY5yI Message-ID: To: Martin DeMello Cc: "caml-list@inria.fr" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Caml-list] If I wanted to write SWIG in OCaml, what library would I need? Hello, 2013/1/28 Martin DeMello : > 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. Frama-C allows to work on C files but won't support preprocessor (regular cpp is used). http://frama-c.com/ It is documented (see "Plug-In Development Guide"): http://frama-c.com/support.html Best regards, david