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 mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 33676BBAF for ; Thu, 24 Sep 2009 10:04:08 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjYCAKPEukpRZ90vkWdsb2JhbACbAAEBAQEJCwoHEwO6e4QbBYFY X-IronPort-AV: E=Sophos;i="4.44,444,1249250400"; d="scan'208";a="47176663" Received: from mtaout01-winn.ispmail.ntl.com ([81.103.221.47]) by mail4-smtp-sop.national.inria.fr with ESMTP; 24 Sep 2009 10:04:03 +0200 Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20090924080402.FCFJ6742.mtaout01-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com> for ; Thu, 24 Sep 2009 09:04:02 +0100 Received: from romulus.metastack.com ([81.102.132.77]) by aamtaout03-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20090924080358.VHYN2093.aamtaout03-winn.ispmail.ntl.com@romulus.metastack.com> for ; Thu, 24 Sep 2009 09:03:58 +0100 Received: from Tenor ([172.16.0.8]) (authenticated bits=0) by romulus.metastack.com (8.14.2/8.14.2) with ESMTP id n8O83tbl009803 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Thu, 24 Sep 2009 09:03:56 +0100 From: "David Allsopp" To: References: <46ACB6F9-FFAE-4C9C-9E46-21CA2E93434C@mykola.org> <20090923195713.GA12236@annexia.org> In-Reply-To: Subject: RE: [Caml-list] Generation of Java code from OCaml Date: Thu, 24 Sep 2009 09:03:52 +0100 Message-ID: <001a01ca3ced$8ef58050$ace080f0$@metastack.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Aco8oNpleOpCtkDWTkCaPUK7zosH9gATEs8w Content-Language: en-gb Organization: MetaStack Solutions Ltd. X-Scanned-By: MIMEDefang 2.65 on 81.102.132.77 X-Cloudmark-Analysis: v=1.0 c=1 a=iuNFjsIzG8MA:10 a=3jd9JkRwSznTGX6ru_EA:9 a=ZCA7zLKGuiQrgGHarS6hEU-lxcUA:4 X-Spam: no; 0.00; ocaml:01 ocaml:01 camlp:01 camlp:01 ocamlc:01 W6:98 wrote:01 wrote:01 syntactic:01 caml-list:01 snip:02 parse:02 output:02 canonical:03 bits:05 Mykola Stryebkov wrote:=20 > Hi, Richard. >=20 > On 23 =D0=92=D0=B5=D1=80 2009, at 22:57, Richard Jones wrote: > I'm going to use stringing bits of text together. But text generating > is not an issue here. The issue is how to make this stringing driven = by > description of ocaml records. camlp4 would be the neatest, most stable way of doing this - as it = sounds so similar in operation (if not function) to json-static, why not = use its code as a reference/starting point? The alternative if you're = happier with text processing and want to avoid the learning-curve for = camlp4 would be to parse the output of `ocamlc -i` which is, in = syntactic terms, canonical (where a source file is not) David