From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 D17EBBBAF for ; Tue, 2 Feb 2010 09:44:36 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlIEAJ50Z0tQDPIaZmdsb2JhbACPL4wXDQsICBQDu1WERQQ X-IronPort-AV: E=Sophos;i="4.49,389,1262559600"; d="scan'208";a="42918308" Received: from smtp20.orange.fr ([80.12.242.26]) by mail3-smtp-sop.national.inria.fr with ESMTP; 02 Feb 2010 09:44:36 +0100 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2017.orange.fr (SMTP Server) with ESMTP id 58F75200047B; Tue, 2 Feb 2010 09:44:36 +0100 (CET) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2017.orange.fr (SMTP Server) with ESMTP id 3CABA2000257; Tue, 2 Feb 2010 09:44:36 +0100 (CET) Received: from [192.168.1.103] (c-67-188-6-241.hsd1.ca.comcast.net [67.188.6.241]) by mwinf2017.orange.fr (SMTP Server) with ESMTP id E88EF2000487; Tue, 2 Feb 2010 09:44:34 +0100 (CET) X-ME-UUID: 20100202084434952.E88EF2000487@mwinf2017.orange.fr X-ME-User-Auth: padator@wanadoo.fr Subject: Re: [Caml-list] Parser/lexer for block indented code Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: Yoann Padioleau In-Reply-To: <7d8707de1002012333g19ccd2b5h3a657efafa7b2e7b@mail.gmail.com> Date: Tue, 2 Feb 2010 00:44:33 -0800 Cc: caml-list@inria.fr Content-Transfer-Encoding: quoted-printable Message-Id: <694039F8-97E0-4A70-8D16-5114B328A28F@wanadoo.fr> References: <7d8707de1002012333g19ccd2b5h3a657efafa7b2e7b@mail.gmail.com> To: Andrej Bauer X-Mailer: Apple Mail (2.1077) X-Spam: no; 0.00; parser:01 lexer:01 andrej:01 parser:01 lexer:01 haskell:01 ocamlyacc:01 ocaml:01 andrej:01 beginner's:01 ocaml:01 bug:01 2009:98 beginners:01 wrote:01 On Feb 1, 2010, at 11:33 PM, Andrej Bauer wrote: >=20 > Would anyone happen to have lying around parser/lexer for block > indented code (a la Python and Haskell)? I am using ocamlyacc or > menhir, whichever. There was some discussions about this in the past: = http://caml.inria.fr/pub/ml-archives/caml-list/2009/06/628f99a8b518acc3fc9= f3649b1901167.en.html google: ocaml layout indentation parsing >=20 > It seems to be the best way to do deal with this is to put a filter > between lexer and parser that inserts appropriate hints. I would like > to avoid reinventing the wheel, hints and advice are appreciated. >=20 > With kind regards, >=20 > Andrej >=20 > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs >=20