English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Parser/lexer for block indented code
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-02-02 (08:44)
From: Yoann Padioleau <padator@w...>
Subject: Re: [Caml-list] Parser/lexer for block indented code

On Feb 1, 2010, at 11:33 PM, Andrej Bauer wrote:

> 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:


google: ocaml layout indentation parsing

> 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.
> With kind regards,
> Andrej
> _______________________________________________
> 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