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=2.9 required=5.0 tests=AWL,DNS_FROM_RFC_POST, SPF_NEUTRAL,SUBJECT_ENCODED_TWICE autolearn=disabled version=3.1.3 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 03A87BBC4 for ; Sun, 12 Apr 2009 20:32:20 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AowCAAfQ4UlKfS4dimdsb2JhbACDApJzPwEBAQoJDAcPBaE+gQmNVwEDAQODeQY X-IronPort-AV: E=Sophos;i="4.40,176,1238968800"; d="scan'208";a="24462278" Received: from yw-out-2324.google.com ([74.125.46.29]) by mail2-smtp-roc.national.inria.fr with ESMTP; 12 Apr 2009 20:32:19 +0200 Received: by yw-out-2324.google.com with SMTP id 5so1166460ywh.3 for ; Sun, 12 Apr 2009 11:32:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=LCtC0B04XZjYXLoRoqHy9RCM/gnr0357MDU/4KQxNUo=; b=jKkO2sAbuzNhiHnNYVJXjc+d+ihbw+qhRDyiH97AbHXvhn9vg9YzslQlVftY+MYjAd QxZxZnIZs7taZgdIZWXUgbCgRg9E9vZ0QKkt5fNDmHdF8W9pSFx4r2aADge3f86bgDvu KPjy+/WRRNUS3ErHgKb2FmV1oGtqEhlvlX/1k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=hpIjGOKcLl2oNyp6eDd/N0l8/DBUH4tCM8o2skslCNg5RUD6JPPO43CbVmOSrUtQ+j m3+6FVuFebdOQxrzgDopZTHeVizz5vrP/TYFdGJAGgIwOkb+Fp5Sy1Wpd5MXzwRudT8T ZeJjGsAgQ3dzveOTzh7Hho+dDxby8caN9XFV0= MIME-Version: 1.0 Received: by 10.151.141.8 with SMTP id t8mr3605598ybn.218.1239561138619; Sun, 12 Apr 2009 11:32:18 -0700 (PDT) In-Reply-To: <49E2293E.6070008@glondu.net> References: <103NDLRKq8030S10.1239557836@cmsweb10.cms.usa.net> <49E2293E.6070008@glondu.net> Date: Sun, 12 Apr 2009 20:32:18 +0200 Message-ID: <527cf6bc0904121132p2f94731ap5659526521a1a139@mail.gmail.com> Subject: =?ISO-8859-1?Q?Re=3A_=5BCaml=2Dlist=5D_CSL_executable_for_Windows=2C_1995_vin?= =?ISO-8859-1?Q?tage=2E_Or_Jens_Kl=F6umlcker=3F?= From: blue storm To: =?ISO-8859-1?Q?St=E9phane_Glondu?= Cc: "Ian S. Worthington" , caml-list@yquem.inria.fr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; ocaml:01 syntactical:01 ocaml:01 compiler:01 vin:98 storm:98 2009:98 steph:98 imho:01 wrote:01 compile:01 csl:01 csl:01 caml-list:01 diff:02 On Sun, Apr 12, 2009 at 7:47 PM, St=E9phane Glondu wrote= : > Ian S. Worthington a =E9crit : >> Or are the differences between CSL and OCAML so slight that someone with= no >> experience should be able to get it working quickly? > > IMHO, there might be differences (mostly syntactical or stdlib-related), > but the translation should be straightforward nonetheless. I'd rather > convert the program from CSL to OCaml than adapt CSL for a "modern C > compiler" if it doesn't work out of the box. I just had a look, and that's a 5-lines-change story. Here is the diff needed to make it compile with ocaml (3.10) : bluestorm.info/tmp/syngen/syngen.diff An example file (from the manual) and the given output (wich I didn't checked for corectness) : http://bluestorm.info/tmp/syngen/test.ara http://bluestorm.info/tmp/syngen/test.syn