From: "Dmitry Bely" <dmitry.bely@gmail.com>
To: "Caml List" <caml-list@inria.fr>
Subject: New Camlp4 questions
Date: Thu, 7 Jun 2007 13:54:09 +0400 [thread overview]
Message-ID: <90823c940706070254lee28346w3471f9a43561b1ba@mail.gmail.com> (raw)
Still trying to convert IoXML to the new Camlp4 syntax. What is an
equivalent for
Pcaml.warning.val loc "Warning: IoXML not implemented for this type";
and
value type_declaration : Grammar.Entry.e 'a =
Obj.magic (Grammar.Entry.find Pcaml.str_item "type_declaration")
;
DELETE_RULE Pcaml.str_item: "type"; LIST1 type_declaration SEP "and" END;
DELETE_RULE Pcaml.sig_item: "type"; LIST1 type_declaration SEP "and" END;
EXTEND
Pcaml.str_item:
[ [ "type"; LIDENT "nogen"; tdl = LIST1 type_declaration SEP "and" ->
<:str_item< type $list:tdl$ >>
| "type"; tdl = LIST1 type_declaration SEP "and" ->
let sil = gen_ioxml_impl loc tdl in
let sil =
if notyp.val then sil
else [<:str_item< type $list:tdl$ >> :: sil]
in
<:str_item< declare $list:sil$ end >> ] ]
;
[...]
END;
How to write value type_declaration? I cannot use Gram.Entry.find as
it is now commented out together with the whole Gram.Find module. Why?
- Dmitry Bely
next reply other threads:[~2007-06-07 9:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-07 9:54 Dmitry Bely [this message]
2007-06-07 13:32 ` [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=90823c940706070254lee28346w3471f9a43561b1ba@mail.gmail.com \
--to=dmitry.bely@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