From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 86A96BB9C for ; Thu, 15 Sep 2005 11:01:17 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j8F91Ggn029181 for ; Thu, 15 Sep 2005 11:01:16 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA16527 for ; Thu, 15 Sep 2005 11:01:16 +0200 (MET DST) Received: from copper.three-tuns.net (copper.three-tuns.net [193.201.200.235]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j8F91E4h027808 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Thu, 15 Sep 2005 11:01:16 +0200 Received: from mark by copper.three-tuns.net with local (Exim 4.52) id 1EFpcH-0005EU-Jj; Thu, 15 Sep 2005 10:01:13 +0100 Date: Thu, 15 Sep 2005 10:01:13 +0100 From: Mark Shinwell To: yoann padioleau Cc: remi.vanicat@gmail.com, caml-list@inria.fr Subject: Re: [Caml-list] Dumping of Typedtree Message-ID: <20050915090113.GG5470@three-tuns.net> References: <13302554.1126721135427.JavaMail.www@wwinf1001> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <13302554.1126721135427.JavaMail.www@wwinf1001> User-Agent: Mutt/1.5.9i Sender: Mark Shinwell X-Miltered: at concorde with ID 4329385C.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4329385A.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; shinwell:01 shinwell:01 caml-list:01 typedtree:01 caml-list:01 typedtree:01 o'caml:01 syntax:01 compiler:01 compiler:01 moderately:01 debugging:01 wrote:01 maintainers:01 constructor:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 On Wed, Sep 14, 2005 at 08:05:35PM +0200, yoann padioleau wrote: > > Message du 14/09/05 19:54 > > De : "Remi Vanicat" > > A : "Mark Shinwell" > > Copie ?? : caml-list@inria.fr > > Objet : Re: [Caml-list] Dumping of Typedtree > > > > 2005/9/14, Mark Shinwell : > > > This is mainly directed at the current O'Caml maintainers. > > > > > > Does there exist anywhere a piece of code for dumping the typed syntax > > > tree representations (values of type Typedtree.structure etc) which are > > > used inside the compiler? I can't find anything in the compiler to do > > > this at the moment, and it looks moderately tedious to write. > > You can use the dumper module by richard jones. > http://merjis.com/developers/dumper > The result is not perfect but it does a good job for fast debugging. I already have a piece of code which does that, as it happens: the problem is that you don't get constructor names, etc. It needs to be something which I can build in with the compiler sources so that this information is preserved. Mark