caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] how (within camlp4 printer) can I traverse AST ?
@ 2012-01-31 21:26 Matej Košík
  2012-01-31 22:58 ` Gabriel Scherer
  0 siblings, 1 reply; 5+ messages in thread
From: Matej Košík @ 2012-01-31 21:26 UTC (permalink / raw)
  To: caml-list

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?

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

end of thread, other threads:[~2012-02-13  9:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-31 21:26 [Caml-list] how (within camlp4 printer) can I traverse AST ? Matej Košík
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

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