|
Camlp4
encounters such a construction, the appropriate
quotation expander is called with the string contents of the
quotation.OCaml
syntax if the
language syntax used is the normal syntax, in revised syntax if the language
syntax is the revised syntax, etc.
|
<<
'' and end with
``>>
''. The associated expander is the ``default'' expander.
<:id<
'' and end with
``>>
'', where ``id
'' is any identifier. The associated
expander is the expander named ``id
''.
<<
'', ``<:id<
'' and
``>>
'', if not matching, must be prefixed by a backslash and
backslashes must be doubled.
|
Quotation.add
'' (see
section 7.7) adds the quotation expander. The variable
``Quotation.default
'' holds the name of the default
quotation.-I
''). An object file (ending with
``.cmo
'') is created, which is loadable in Camlp4, as parameter
of the command ``camlp4'', or in the OCaml toplevel using the
directive ``#load
''.
|