Version française
Home     About     Download     Resources     Contact us    
Browse thread
How to achieve this camlp4 syntax extension
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jérémie Dimino <jeremie@d...>
Subject: Re: [Caml-list] How to achieve this camlp4 syntax extension
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