From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 93EC1BBC1 for ; Thu, 13 Mar 2008 04:14:39 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoCANc42EfUnw6Gi2dsb2JhbACCNo49AQEBCAQGBwgalDI X-IronPort-AV: E=Sophos;i="4.25,492,1199660400"; d="scan'208";a="10202926" Received: from pih-relay08.plus.net ([212.159.14.134]) by mail3-smtp-sop.national.inria.fr with ESMTP; 13 Mar 2008 04:14:39 +0100 Received: from [80.229.56.224] (helo=beast.local) by pih-relay08.plus.net with esmtp (Exim) id 1JZdtu-0002xs-Hc for caml-list@yquem.inria.fr; Thu, 13 Mar 2008 03:14:38 +0000 From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] A C to OCaml helper ? Date: Thu, 13 Mar 2008 03:14:42 +0000 User-Agent: KMail/1.9.7 References: <20080312204217.3f5087e3@orange.fr> In-Reply-To: <20080312204217.3f5087e3@orange.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803130314.42392.jon@ffconsultancy.com> X-Plusnet-Relay: 452595583d5c255ffd4b1bee832f8e4b X-Spam: no; 0.00; ocaml:01 ocaml:01 frog:98 wrote:01 caml-list:01 functions:01 nested:04 compiled:04 exists:05 translation:07 fabrice:08 helper:10 maybe:10 ltd:87 think:13 On Wednesday 12 March 2008 19:42:17 Fabrice Marchant wrote: > Hi ! > > Please does it exist some tool that could do at least the very mechanical > first parts of the translation of a C source to OCaml ? I do not believe such a tool exists but it would be a great educational exercise to try and write one. I can't think of any particularly difficult aspects. Maybe goto statements but they can be compiled to nested functions that call each other. -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/products/?e