From: "Richard W.M. Jones" <rich@annexia.org>
To: caml-list@inria.fr
Subject: [Caml-list] Some simple(?) questions about camlp4 <:quotations< ... >>
Date: Wed, 28 Dec 2011 16:25:56 +0000 [thread overview]
Message-ID: <20111228162556.GA2806@annexia.org> (raw)
I'm writing a mini-DSL that'll use camlp4 quotations. In general
http://brion.inria.fr/gallium/index.php/Quotation has been very
helpful, but I still have a few questions:
(1) Is any other syntax available for quotations apart from
<:foo< ... >> and the default quotation expander << ... >>?
(2) Is there any way to escape >> inside a quotation. In particular
some of my quotations will contain C code, and >> is a C operator
(right shift). This is not a show-stopper, but it'd be nice to be
able to offer a way for C code to contain right shifts, in a way that
is easily comprehensible to C programmers.
(3) In a custom-defined quotation expander, does the antiquotation
syntax $bar$ have any special meaning? I want to use $variable
substitutions, so if $ is being treated specially this might cause
problems.
Rich.
--
Richard Jones
Red Hat
next reply other threads:[~2011-12-28 16:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-28 16:25 Richard W.M. Jones [this message]
2011-12-28 17:23 ` Gabriel Scherer
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=20111228162556.GA2806@annexia.org \
--to=rich@annexia.org \
--cc=caml-list@inria.fr \
/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