English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] [Q] camlp4 help (fwd)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-10-06 (05:18)
From: jd marrow <jd@p...>
Subject: [Caml-list] [Q] camlp4 help (fwd)

i'm trying to use camlp4 to extend ocaml so that i can write something
like:

	foo ident0 = <ident list>

or (my preference)

	let foo ident0 = <ident list>

where "foo" is a new keyword and <ident list> is a list of identifiers. 
i'd then like to:

(1) declare a value named ident0 in the current module, and

(2) wrap subsequent functional values matching those described in the
    identifier list with special code...

can you point me to any camlp4 code that does something which is [even
remotely] similar? or tell me why my thinking here is completely
off? (i've been an ocaml user for a short while, but am completely new
to camlp4...)

thanks much,

jdm 



jean-david marrow / jd (at) psoftware (dot) org






-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr