Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Jérémie Dimino" <jeremie@dimino.org>
To: Conglun Yao <yaoconglun@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] How to achieve this camlp4 syntax extension
Date: Thu, 02 Apr 2009 14:33:47 +0200	[thread overview]
Message-ID: <1238675627.26438.144.camel@localhost.localdomain> (raw)
In-Reply-To: <f7b50d2a0904020442rb51fe54p496e6f2f2b665c3e@mail.gmail.com>

Conglun Yao wrote:
> I tried to achieve the following syntax extension, but failed.
> 
> Add expression .[ ] after a module name, inside .[ ] I want to refer
> to the specified module, like
> 
> let _ = M1.M2.[ here is my syntax,  using M1.M2 module ]

You should have a look at delimited overloading:

  http://pa-do.forge.ocamlcore.org/

It defines the same kind of syntax extension.

Cheers,
Jérémie


  reply	other threads:[~2009-04-02 12:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-02 11:42 Conglun Yao
2009-04-02 12:33 ` Jérémie Dimino [this message]
2009-04-02 12:40 ` [Caml-list] " David Teller
2009-04-02 12:48   ` Conglun Yao
2009-04-02 13:00 ` Zheng Li
2009-04-02 20:23   ` Conglun Yao
2009-04-14  0:24     ` [Caml-list] " Christophe TROESTLER

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=1238675627.26438.144.camel@localhost.localdomain \
    --to=jeremie@dimino.org \
    --cc=caml-list@yquem.inria.fr \
    --cc=yaoconglun@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