From: Joel Reymont <joelr1@gmail.com>
To: Caml List <caml-list@inria.fr>
Subject: camlp4: Understanding class_declaration
Date: Thu, 4 Oct 2007 17:40:58 +0100 [thread overview]
Message-ID: <ACF73769-6006-45B8-AC9F-72032BE76B2D@gmail.com> (raw)
Would someone kindly explain LEFTA, SELF, ANTIQUOT and QUOTATION below?
class_declaration:
[ LEFTA
[ c1 = SELF; "and"; c2 = SELF ->
<:class_expr< $c1$ and $c2$ >>
| `ANTIQUOT (""|"cdcl"|"anti"|"list" as n) s ->
<:class_expr< $anti:mk_anti ~c:"class_expr" n s$ >>
| `QUOTATION x -> Quotation.expand _loc x
Quotation.DynAst.class_expr_tag
| ci = class_info_for_class_expr; ce = class_fun_binding ->
<:class_expr< $ci$ = $ce$ >>
] ]
It seems they are variants but that's about as much as I understand.
What are the "cdcl", "anti" or "list", for example? Why are they
strings?
And why is `QUOTATION x expanded into Quotation.expand _loc x
Quotation.DynAst.class_expr_tag?
Thanks in advance, Joel
--
http://wagerlabs.com
next reply other threads:[~2007-10-04 16:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-04 16:40 Joel Reymont [this message]
2007-10-06 7:35 ` [Caml-list] " Nicolas Pouillard
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=ACF73769-6006-45B8-AC9F-72032BE76B2D@gmail.com \
--to=joelr1@gmail.com \
--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