Version française
Home     About     Download     Resources     Contact us    
Browse thread
Pretty-printing the OCaml AST from the toplevel
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Joel Reymont <joelr1@g...>
Subject: Pretty-printing the OCaml AST from the toplevel
Are there any examples of pretty-printing the OCaml AST from the  
toplevel?

I'm looking to use this during interactive debugging.

I see the following example in the camlp4 changes doc

camlp4 -parser OCaml -printer OCamlr foo.ml

but I'm still browsing through Camlp4.ml to figure out what that does  
exactly.

	Thanks, Joel

--
http://wagerlabs.com