From: Daniel de Rauglaudre <daniel.de_rauglaudre@inria.fr>
To: Caml mailing list <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] How can I generate an AST?
Date: Mon, 20 Aug 2007 17:45:25 +0200 [thread overview]
Message-ID: <20070820154525.GA13963@yquem.inria.fr> (raw)
In-Reply-To: <6f9f8f4a0708200624x1b09dc40u2d5fa76b4a70faf7@mail.gmail.com>
Hi,
On Mon, Aug 20, 2007 at 03:24:50PM +0200, Loup Vaillant wrote:
> I have still one problem, though : how should I access this code? It
> is not part of the standard library, so I can't just "open Config;;".
> I can't hard-copy this code, either, that is too ugly. Maybe there is
> a way to install a "development package" of Ocaml so I can link it?
For Camlp5, and Camlp4 (before it was integrated into OCaml), I had to
"hard copy" this code, like you say, since it is not exported indeed.
Notice that you have the same problem with the definition of the
abstract syntax tree, since is not exported either.
Perhaps convice the ocaml team to do it, in a specific sub-directory,
since I see that there are already: "ocamldoc", "camlp4", "labltk",
"threads", "vmthreads", "stublibs".
A new installed directory, named, e.g. "syntaxtree" would be great,
containing "parseetree.mli", "parsetree.cmi" and all its dependencies,
as well as this "pconfig.ml" and its object file or a subpart of it,
containing at least these "ast_impl_magic_number" and
"ast_intf_magic_number".
I can do it in the ocaml compiler if I have the permission.
Xavier ?
--
Daniel de Rauglaudre
http://pauillac.inria.fr/~ddr/
next prev parent reply other threads:[~2007-08-20 15:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-19 17:39 Loup Vaillant
2007-08-19 18:16 ` [Caml-list] " Daniel de Rauglaudre
2007-08-20 8:22 ` Loup Vaillant
2007-08-20 11:13 ` Daniel de Rauglaudre
2007-08-20 13:24 ` Loup Vaillant
2007-08-20 13:29 ` Massimiliano Brocchini
2007-08-20 15:45 ` Daniel de Rauglaudre [this message]
[not found] ` <6f9f8f4a0708220222q5ea56138u8b4c85dd4c35c56e@mail.gmail.com>
[not found] ` <20070822103226.GA12907@yquem.inria.fr>
2007-08-22 13:47 ` Loup Vaillant
2007-08-19 21:37 ` Alain Frisch
2007-08-20 8:29 ` Loup Vaillant
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=20070820154525.GA13963@yquem.inria.fr \
--to=daniel.de_rauglaudre@inria.fr \
--cc=caml-list@yquem.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