Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Camlp4: generating printers of types
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Daniel de Rauglaudre <daniel.de_rauglaudre@i...>
Subject: Re: [Caml-list] Camlp4: generating printers of types
Hi,

On Fri, Oct 25, 2002 at 12:20:33PM -0700, Ken Rose wrote:

> >     http://caml.inria.fr/camlp4/tutorial.new/tutorial007.html#toc51
> 
> I'm very interested, but unfortunately it doesn't work in ocaml-3.06. 

I think that the only problem is that Pcaml.type_declaration is not
defined. Is it that? In this case, if you don't want to update the
current CVS version, you can use the trick I used in IoXML:

let type_declaration : Grammar.Entry.e 'a =
  Obj.magic (Grammar.Entry.find Pcaml.str_item "type_declaration");;

and replace "Pcaml.type_declaration" by "type_declaration".

-- 
Daniel de RAUGLAUDRE
http://cristal.inria.fr/~ddr/
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners