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=1.4 required=5.0 tests=SPF_NEUTRAL autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 9DE35BC69 for ; Sun, 19 Aug 2007 19:39:51 +0200 (CEST) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.227]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l7JHdoq7025915 for ; Sun, 19 Aug 2007 19:39:51 +0200 Received: by wr-out-0506.google.com with SMTP id c8so690966wra for ; Sun, 19 Aug 2007 10:39:50 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=KsPRUzRuFPkcY6UvS0G4/crPKOUAF+nU1tky0iekLTd+osW98qDiL+K+1SU7Lzyfis24YDcQ3lFG+WsfnEBWCQjgiEaBjvGe5ShfxVlcDoy5yM+gRZgm588csCCupElvPA4J+OS22GKvS0wViiusnwFj86MW9gjXANCGfqMppE8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=A7dAworYm+hDRnINxFFjTUEIUmZDRmha14c4phkf7BNzpD3kRwed6X9OyqyqP+gprnxkwqWUrkzAn5Ess2QZfKRvdXwGMxH26PMdtjnCs+8rG7/ScRnM5VNq7COdAfFzQ9bfxVTQZr4mZdy6DRSiEZQDLI4w2tjaOlooZI0wgA4= Received: by 10.90.106.11 with SMTP id e11mr7810219agc.1187545190237; Sun, 19 Aug 2007 10:39:50 -0700 (PDT) Received: by 10.64.148.3 with HTTP; Sun, 19 Aug 2007 10:39:50 -0700 (PDT) Message-ID: <6f9f8f4a0708191039o2119f94bm10959175cc887eef@mail.gmail.com> Date: Sun, 19 Aug 2007 19:39:50 +0200 From: "Loup Vaillant" To: "Caml mailing list" Subject: How can I generate an AST? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-j-chkmail-Score: MSGID : 46C88066.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 46C88066.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; syntax:01 ocaml:01 compiler:01 pointer:01 preprocessor:01 purple:98 ast:02 ast:02 lisp:02 output:02 generated:05 catching:05 anybody:07 magic:10 however:13 Hello, I would like to write a preprocessor of my own (to make a lisp syntax). In the process, I am slowly catching up with the Ocaml AST. However, I am clueless about how I should feed the compiler with my generated AST. Should I use Marshall? should I output the same as the option -dparsetree? Should I use some "purple magic"? Can anybody give me a pointer about how to do this? Thanks, Loup Vaillant