caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: jd marrow <jd@psoftware.net>
To: caml-list@inria.fr
Subject: [Caml-list] [Q] camlp4 help (fwd)
Date: Sat, 6 Oct 2001 01:29:29 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.21.0110060129200.6840-100000@genghis> (raw)


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


             reply	other threads:[~2001-10-06  5:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-06  5:29 jd marrow [this message]
2001-10-06 10:30 ` Daniel de Rauglaudre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.21.0110060129200.6840-100000@genghis \
    --to=jd@psoftware.net \
    --cc=caml-list@inria.fr \
    --cc=jd@psoftware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).