From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id D73B9BC0A for ; Tue, 27 Feb 2007 17:20:04 +0100 (CET) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.190]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l1RGK4kE028812 for ; Tue, 27 Feb 2007 17:20:04 +0100 Received: from [212.227.126.200] (helo=mrvnet.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1HM53b-0007jC-00; Tue, 27 Feb 2007 17:20:03 +0100 Received: from [212.227.127.154] (helo=infong258 ident=8) by mrvnet.kundenserver.de with smtp (Exim 3.35 #1) id 1HM53b-0000XA-00; Tue, 27 Feb 2007 17:20:03 +0100 Received: from [206.106.168.10](IP may be forged by CGI script) by infong258.kundenserver.de with HTTP; Tue, 27 Feb 2007 17:20:03 +0100 Precedence: bulk To: Denis Bueno Subject: Re: [Caml-list] Testing lexers and parsers MIME-Version: 1.0 Date: Tue, 27 Feb 2007 17:20:03 +0100 From: konrad Cc: Joel Reymont , OCaml Mailing List In-Reply-To: <6dbd4d000702270811h55247a3bi808053a24ee8238d@mail.gmail.com> References: <6dbd4d000702270811h55247a3bi808053a24ee8238d@mail.gmail.com> Message-ID: <3780513f01438e27a484513e22b4a4fe@mail.in.tum.de> X-Sender: konrad@mail.in.tum.de User-Agent: RoundCube Webmail/0.1b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Provags-ID: kundenserver.de abuse@kundenserver.de sender-info:177372206@infong258 X-Miltered: at discorde with ID 45E45A34.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; lexers:01 parsers:01 compiler:01 debugging:01 beginner's:01 ocaml:01 bug:01 beginners:01 wrote:01 wrote:01 parsed:01 caml-list:01 caml-list:01 functions:01 reproduce:01 I actually attended a project in university on writing a C compiler (written in Java) and we printed out XML code for debugging, that represented the AST. That was a real benefit cause you can still see the structure of the AST in the XML tree. It is even easy to do that - one tree traversal is enough. chris On Tue, 27 Feb 2007 11:11:09 -0500, "Denis Bueno" wrote: > [Meant to send to the list the first time. Sorry for the dupe.] > > On 2/27/07, Denis Bueno wrote: >> On 2/27/07, Joel Reymont wrote: >> > Are you printing out the AST to make sure you can reproduce the >> > original file you parsed? > > Yes. I wanted to make sure my AST-printing functions would print > correct source code in the source language. This makes it very easy to > inspect AST fragments. > > -Denis > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs