From: "Matej Košík" <5764c029b688c1c0d24a2e97cd764f@gmail.com>
To: caml-list@inria.fr
Subject: [Caml-list] how (within camlp4 printer) can I traverse AST ?
Date: Tue, 31 Jan 2012 21:26:14 +0000 [thread overview]
Message-ID: <4F285C76.10301@gmail.com> (raw)
Hello,
I would like to write a (camlp4 pluggable) printer.
My starting-point is this:
http://brion.inria.fr/gallium/index.php/Setup_a_new_printer
It was easy to figure out that "ast" arguments have type "Ast.sig_item"
or "Ast.str_item" respectively which are both abstract types
http://camlunity.ru/doc/camlp4-3.12/Camlp4.Sig.Ast.html
so I cannot try to match them---I cannot use any of the constructors
defined in:
http://camlunity.ru/doc/camlp4-3.12/Camlp4.Sig.Camlp4Ast.html
What is thus a proper way of traversing ASTs?
next reply other threads:[~2012-01-31 21:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-31 21:26 Matej Košík [this message]
2012-01-31 22:58 ` Gabriel Scherer
2012-02-01 12:01 ` Matej Košík
2012-02-02 16:38 ` Gabriel Scherer
2012-02-13 9:34 ` Hendrik Tews
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=4F285C76.10301@gmail.com \
--to=5764c029b688c1c0d24a2e97cd764f@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