From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA10261; Fri, 11 Jan 2002 10:55:27 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA10602 for ; Fri, 11 Jan 2002 10:55:26 +0100 (MET) Received: from verdot.inria.fr (verdot.inria.fr [128.93.11.7]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g0B9tQP04624 for ; Fri, 11 Jan 2002 10:55:26 +0100 (MET) Received: (from ddr@localhost) by verdot.inria.fr (8.9.3/8.9.3) id KAA05713 for caml-list@inria.fr; Fri, 11 Jan 2002 10:55:25 +0100 Date: Fri, 11 Jan 2002 10:55:25 +0100 From: Daniel de Rauglaudre To: caml-list@inria.fr Subject: Re: [Caml-list] ocaml magic file ... Message-ID: <20020111105525.K3826@verdot.inria.fr> References: <20020109172037.A16133@dpt-info.u-strasbg.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i 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 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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