From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 044A0BCAC for ; Sun, 22 May 2005 21:32:07 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j4MJW6kW023239 for ; Sun, 22 May 2005 21:32:06 +0200 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 VAA15657 for ; Sun, 22 May 2005 21:32:06 +0200 (MET DST) Received: from furbychan.cocan.org (furbychan.cocan.org [80.68.91.176]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j4MJW5Om027689 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sun, 22 May 2005 21:32:05 +0200 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1DZwEj-0001wS-00 for ; Sun, 22 May 2005 20:35:45 +0100 Date: Sun, 22 May 2005 20:35:44 +0100 To: caml-list@inria.fr Subject: camlp4: inserting code at the beginning of a file Message-ID: <20050522193544.GA7450@furbychan.cocan.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i From: Richard Jones X-Miltered: at nez-perce with ID 4290DE36.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 4290DE35.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; inserting:01 bug:01 notepad:01 jambon:01 jambon:01 output:02 tutorial:04 marketing:93 trick:06 i'm:08 file:08 file:08 business:90 martin:10 martin:10 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: I'm using the trick described below to insert code in front of a file being processed by camlp4, and it works, but as Martin Jambon describes it screws up the output of the pretty printer. http://martin.jambon.free.fr/extend-ocaml-syntax.html#inserting-bof Is this a bug in camlp4, or in the tutorial, and either way is there anything I can do about it? Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com