caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* camlp4: Understanding class_declaration
@ 2007-10-04 16:40 Joel Reymont
  2007-10-06  7:35 ` [Caml-list] " Nicolas Pouillard
  0 siblings, 1 reply; 2+ messages in thread
From: Joel Reymont @ 2007-10-04 16:40 UTC (permalink / raw)
  To: Caml List

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-10-06  7:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-04 16:40 camlp4: Understanding class_declaration Joel Reymont
2007-10-06  7:35 ` [Caml-list] " Nicolas Pouillard

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).