caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Daniel de Rauglaudre <daniel.de_rauglaudre@inria.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] ocaml magic file ...
Date: Fri, 11 Jan 2002 10:55:25 +0100	[thread overview]
Message-ID: <20020111105525.K3826@verdot.inria.fr> (raw)
In-Reply-To: <20020109172037.A16133@dpt-info.u-strasbg.fr>; from luther@dpt-info.u-strasbg.fr on Wed, Jan 09, 2002 at 05:20:37PM +0100

Hi,

On Wed, Jan 09, 2002 at 05:20:37PM +0100, Sven wrote:

> I have this small magic file (to put in /etc/magic) for file to
> recognize the various .cm* file types.

Under my Linux, it is /usr/share/magic. It works.

> I don't really know what the ast_impl, the ast_intf and the exec
> file type are all about, so these may not be the best strings around.

They are files holding syntax trees generated by camlp4. E.g.:
      camlp4o myfile.ml -o foobar.ml

The file "foobar.ml" is an ast_impl file. It is binary but compilable:
      ocamlc -c foobar.ml

The compiler loads the binary tree, the syntactic analysis is skipped
and the possible error messages show the initial file (myfile.ml).

With your magic file:
      file foobar.ml
      foobar.ml: Objective Caml 'ast_impl' file (Version 008).

-- 
Daniel de RAUGLAUDRE
daniel.de_rauglaudre@inria.fr
http://cristal.inria.fr/~ddr/
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


      reply	other threads:[~2002-01-11  9:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-09 16:20 Sven
2002-01-11  9:55 ` Daniel de Rauglaudre [this message]

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=20020111105525.K3826@verdot.inria.fr \
    --to=daniel.de_rauglaudre@inria.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;
as well as URLs for NNTP newsgroup(s).