From: Aleksey Nogin <nogin@metaprl.org>
To: Caml List <caml-list@inria.fr>
Subject: Camlp4 3.10 - antiquotations in keyword position?
Date: Mon, 23 Apr 2007 17:07:48 -0700 [thread overview]
Message-ID: <462D4A54.6010700@metaprl.org> (raw)
In 3.09 we used to allow defining "infix" keywords by using
antiquotations in inside the "EXTEND" and "DELETE_RULE" directives as
follows:
--------------------------------------------------------------
(*
* The prefix version of the infix expression
*)
let prefix_name op =
"prefix_" ^ op
(*
* Add an infix keyword.
*)
let add_infix (keyword : string) =
EXTEND
GLOBAL: expr;
expr: LEVEL "expr1"
["expr1" LEFTA
[ e1 = expr; op = $keyword$; e2 = expr ->
<:expr< $lid:prefix_name op$ $e1$ $e2$ >>
]];
END
(*
* Remove the infix keyword.
*)
let remove_infix (keyword : string) =
DELETE_RULE
expr:
expr; $keyword$; expr
END
--------------------------------------------------------------
This does not seem to be supported in 3.10. Is there some other way to
achieve a similar effect in 3.10? Thanks!
Aleksey
next reply other threads:[~2007-04-24 0:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-24 0:07 Aleksey Nogin [this message]
2007-04-24 0:12 ` [Caml-list] " Nicolas Pouillard
2007-04-26 16:25 ` Aleksey Nogin
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=462D4A54.6010700@metaprl.org \
--to=nogin@metaprl.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