Version française
Home     About     Download     Resources     Contact us    
Browse thread
camlp4: Parsing and transforming class definitions
[ 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@i...>
Subject: Re: [Caml-list] camlp4: Parsing and transforming class definitions
Excerpts from martin.jambon's message of Thu Oct 04 18:05:22 +0200 2007:
> On Thu, 4 Oct 2007, Joel Reymont wrote:
>
> > Folks,
> >
> > I would like to use camlp4 to parse OCaml class definitions and transform the
> > code if the class inherits from a given one. Are there any OCaml extensions
> > that manipulate classes?
>
> See Jacques Garrigue's pa_oo extension. I think Nicolas made a port to
> camlp4 3.10.
> http://www.math.nagoya-u.ac.jp/~garrigue/code/pa_oo.ml

No it's not part of the distribution (but I think it should).

> > For the record, I would like to generate define Cocoa classes in OCaml and
> > automatically generate all the required FFI wrappers.
> >
> >     Thanks, J
> >
-- 
Nicolas Pouillard aka Ertai