Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Alain Frisch <alain@frisch.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] How can I generate an AST?
Date: Sun, 19 Aug 2007 23:37:18 +0200	[thread overview]
Message-ID: <46C8B80E.1020901@frisch.fr> (raw)
In-Reply-To: <6f9f8f4a0708191039o2119f94bm10959175cc887eef@mail.gmail.com>

Loup Vaillant wrote:
> Can anybody give me a pointer about how to do this?

The function Pparse.file is the one that makes the compiler accepts
either source code or marshaled ASTs. By looking at its implementation
and its call sites, you'll discover that the binary format is the
concatenation of a magic string Config.ast_impl_magic_number (resp.
Config.ast_intf_magic_number) and the marshaled version of a
Parsetree.structure (resp. a Parsetree.signature).

-- Alain


  parent reply	other threads:[~2007-08-19 21:38 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
     [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 [this message]
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=46C8B80E.1020901@frisch.fr \
    --to=alain@frisch.fr \
    --cc=caml-list@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