Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
F# lightweight syntax for Ocaml with camlp4 - possible?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] F# lightweight syntax for Ocaml with camlp4 - possible?
On 5/8/07, Chris King <> wrote:
> On 5/7/07, Dmitry Bely <> wrote:
> > Could the same idea be implemented for Ocaml with Camlp4? Can it use
> > an indentation level while parsing?
> It has been...
> But it doesn't use camlp4 (since camlp4 can't modify the lexer to
> handle tabs specially).

This is somewhat different in the new version of Camlp4 even if one
cannot dynamically extend the default lexer.

1/ One can now change a Camlp4 module by another, since the
implementation is functorized.

2/ The default lexer now keeps all bits of the input including layout

3/ One can setup a custom token filter, that can handle the
indentation, and then drop the layout information (The default filter
drops layout information).

Best regards,

Nicolas Pouillard