Browse thread
[camlp4] expr_of_string, string_of_expr functions exist?
-
Richard Jones
- Yitzhak Mandelbaum
- Christophe TROESTLER
- Jeremy Yallop
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Yitzhak Mandelbaum <yitzhakm@C...> |
| Subject: | Re: [Caml-list] [camlp4] expr_of_string, string_of_expr functions exist? |
I don't know about the new camlp4, but in the old one the code looked something like this (where my AST is a list of str_item-s): open Pcaml let ast_to_strings ast = List.map (function str_item -> string_of pr_str_item str_item) ast --Yitzhak On Aug 5, 2008, at 12:04 PM, Richard Jones wrote: > > Maybe a simple question, but does camlp4 have functions to turn > expr and patt AST structures to and from strings? > > Rich. > > -- > Richard Jones > Red Hat > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs ----------------------------- Yitzhak Mandelbaum