From: Yitzhak Mandelbaum <yitzhakm@CS.Princeton.EDU>
To: Richard Jones <rich@annexia.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] [camlp4] expr_of_string, string_of_expr functions exist?
Date: Tue, 5 Aug 2008 13:43:25 -0400 [thread overview]
Message-ID: <1C3DB865-C767-46D0-9F2B-7BDE1539E33C@cs.princeton.edu> (raw)
In-Reply-To: <20080805160426.GA698@annexia.org>
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
next prev parent reply other threads:[~2008-08-05 17:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-05 16:04 Richard Jones
2008-08-05 17:43 ` Yitzhak Mandelbaum [this message]
2008-08-05 17:53 ` [Caml-list] " Christophe TROESTLER
2008-08-06 13:40 ` Richard Jones
2008-08-06 19:58 ` Jeremy Yallop
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=1C3DB865-C767-46D0-9F2B-7BDE1539E33C@cs.princeton.edu \
--to=yitzhakm@cs.princeton.edu \
--cc=caml-list@inria.fr \
--cc=rich@annexia.org \
/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;
as well as URLs for NNTP newsgroup(s).