From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 7A273BBAF for ; Tue, 2 Feb 2010 09:37:39 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgMBAK9zZ0vRVdnhkWdsb2JhbACRN4ISh0A9AQEBAQkLCgcTA6wGgUiFGIhtAQEDBYRABA X-IronPort-AV: E=Sophos;i="4.49,389,1262559600"; d="scan'208";a="42663433" Received: from mail-gx0-f225.google.com ([209.85.217.225]) by mail2-smtp-roc.national.inria.fr with ESMTP; 02 Feb 2010 09:37:38 +0100 Received: by gxk25 with SMTP id 25so2970942gxk.17 for ; Tue, 02 Feb 2010 00:37:38 -0800 (PST) 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; bh=M8HUWh4sDzfMAg9bNbZECQCtBYdvw1Vkl9pFHIonpIU=; b=PCYvFHID5y49TkaNczwPEfqzfquZ7gb4e655qQrKRX1SpBdsV+3lqX4ovO7h/tNfBK QnTcm0p5bXuvCFJfvIncLkPHlT6fcoVTSDeTWH7rCE09biqwlviTMkCD5ai0nHgYQHL3 rivY3h0u5U1shOnUXzmSl5yAQwZBD4gzoD8Ec= 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; b=P+Wf2iRLVIg/OUuKS72jBLaF+EbbKsi6+N0H59lBv+i3bnBXUwVM/G60GZkmIPkaV1 Gmz600irkl6AdLAqoQCjd1YrmNyzMm3zxzlr2ovnM0Fao4fH5YkOFwKEpEqpsThKEwuH vum4rNTkKKakDOlEAL4xEdHEPrSj8oSWGRn8k= MIME-Version: 1.0 Received: by 10.101.137.10 with SMTP id p10mr7189051ann.33.1265099857920; Tue, 02 Feb 2010 00:37:37 -0800 (PST) In-Reply-To: <7d8707de1002012333g19ccd2b5h3a657efafa7b2e7b@mail.gmail.com> References: <7d8707de1002012333g19ccd2b5h3a657efafa7b2e7b@mail.gmail.com> Date: Tue, 2 Feb 2010 09:37:37 +0100 Message-ID: <527cf6bc1002020037w11e0ff0bsac2fd8c6222f84ac@mail.gmail.com> Subject: Re: [Caml-list] Parser/lexer for block indented code From: blue storm To: Andrej Bauer Cc: caml-list@inria.fr Content-Type: multipart/alternative; boundary=0016e6d2833aa30300047e9a030c X-Spam: no; 0.00; parser:01 lexer:01 mikelin:01 ocaml:01 camlp:01 ad-hoc:01 camlp:01 mikelin:01 ocaml:01 ad-hoc:01 storm:98 compile:01 compile:01 caml-list:01 grammar:02 --0016e6d2833aa30300047e9a030c Content-Type: text/plain; charset=ISO-8859-1 There is "The Whitespace Thing" : http://people.csail.mit.edu/mikelin/ocaml+twt/ I have tried to reproduce something similar using Camlp4 twice, the first time with a ad-hoc grammar reusing as much as the current grammar as possible, the second with the specific goal of compatibility with the F# "#light" grammar. Both projets have reached a "good enough to test and use privately" state, but I haven't actually made the effort to release them (knowing virutally nobody would use them anyway, because it's camlp4). In particular, the "pa_light" attempt never reached full #light compatibility. If you care, I could clean the up a bit (more than two years of bitrot, then probably don't even compile anymore) and upload them somewhere. --0016e6d2833aa30300047e9a030c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable There is "The Whitespace Thing" : http://people.csail.mit.edu/mikelin/ocaml+twt/<= /a>

I have tried to reproduce something similar using Camlp4 twice, = the first time with a ad-hoc grammar reusing as much as the current grammar= as possible, the second with the specific goal of compatibility with the F= # "#light" grammar.
Both projets have reached a "good enough to test and use privately&quo= t; state, but I haven't actually made the effort to release them (knowi= ng virutally nobody would use them anyway, because it's camlp4). In par= ticular, the "pa_light" attempt never reached full #light compati= bility.

If you care, I could clean the up a bit (more than two years of bitrot,= then probably don't even compile anymore) and upload them somewhere. --0016e6d2833aa30300047e9a030c--