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: Martin Jambon <martin.jambon@e...>
Subject: Re: [Caml-list] camlp4: Parsing and transforming class definitions
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

> For the record, I would like to generate define Cocoa classes in OCaml and 
> automatically generate all the required FFI wrappers.
>
> 	Thanks, Joel
>
> --
> http://wagerlabs.com
>
>
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>

--
http://martin.jambon.free.fr