Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Nicolas Pouillard" <nicolas.pouillard@gmail.com>
To: "Chris King" <colanderman@gmail.com>
Cc: "Dmitry Bely" <dmitry.bely@gmail.com>, "Caml List" <caml-list@inria.fr>
Subject: Re: [Caml-list] F# lightweight syntax for Ocaml with camlp4 - possible?
Date: Thu, 10 May 2007 17:24:11 +0200	[thread overview]
Message-ID: <cd67f63a0705100824r44f9d791l85d3f93328afe0cd@mail.gmail.com> (raw)
In-Reply-To: <875c7e070705071536k166e06f7x94525ae68234466a@mail.gmail.com>

On 5/8/07, Chris King <colanderman@gmail.com> wrote:
> On 5/7/07, Dmitry Bely <dmitry.bely@gmail.com> wrote:
> > Could the same idea be implemented for Ocaml with Camlp4? Can it use
> > an indentation level while parsing?
>
> It has been... http://people.csail.mit.edu/mikelin/ocaml+twt/
> 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
information.

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


  reply	other threads:[~2007-05-10 15:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-07 22:26 Dmitry Bely
2007-05-07 22:36 ` [Caml-list] " Chris King
2007-05-10 15:24   ` Nicolas Pouillard [this message]
2007-05-07 23:43 ` Daniel Bünzli
2007-05-08  1:28   ` Jon Harrop
2007-05-08  4:12     ` skaller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cd67f63a0705100824r44f9d791l85d3f93328afe0cd@mail.gmail.com \
    --to=nicolas.pouillard@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=colanderman@gmail.com \
    --cc=dmitry.bely@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox