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.1 required=5.0 tests=AWL,DNS_FROM_SECURITYSAGE autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 90EF0BB84 for ; Thu, 13 Nov 2008 05:47:31 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AikDAE5AG0nAXQIngWdsb2JhbACTXwEBFiK7dQeDUA X-IronPort-AV: E=Sophos;i="4.33,594,1220220000"; d="scan'208";a="19132527" Received: from concorde.inria.fr ([192.93.2.39]) by mail3-smtp-sop.national.inria.fr with ESMTP; 13 Nov 2008 05:47:30 +0100 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id mAD4lUlx026131 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Thu, 13 Nov 2008 05:47:30 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AoAAAOc/G0nLOwFskWdsb2JhbACTXwEBAQEJCwoHEQS7cAeDUA X-IronPort-AV: E=Sophos;i="4.33,594,1220220000"; d="scan'208";a="31401460" Received: from outbound.icp-qv1-irony-out1.iinet.net.au ([203.59.1.108]) by mail4-smtp-sop.national.inria.fr with ESMTP; 13 Nov 2008 05:47:29 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAE5AG0nLzuai/2dsb2JhbADQDgeDUA X-IronPort-AV: E=Sophos;i="4.33,594,1220198400"; d="scan'208";a="416018222" Received: from unknown (HELO hendrix.mega-nerd.net) ([203.206.230.162]) by outbound.icp-qv1-irony-out1.iinet.net.au with ESMTP; 13 Nov 2008 13:47:22 +0900 Received: from hendrix (hendrix [192.168.200.99]) by hendrix.mega-nerd.net (Postfix) with SMTP id EA960AB202 for ; Thu, 13 Nov 2008 15:47:21 +1100 (EST) Date: Thu, 13 Nov 2008 15:47:21 +1100 From: Erik de Castro Lopo To: caml-list@inria.fr Subject: Re: [Caml-list] Ocaml 3.01 and camlp4 syntax? Message-Id: <20081113154721.e3ee306a.mle+ocaml@mega-nerd.com> In-Reply-To: <491B82B6.3040009@ens-lyon.org> References: <20081113102217.87faf573.mle+ocaml@mega-nerd.com> <491B82B6.3040009@ens-lyon.org> Reply-To: caml-list@inria.fr Organization: Erik Conspiracy Secret Labs X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.9; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 491BB162.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 camlp:01 syntax:01 parsers:01 syntax:01 parsers:01 camlp:01 ocamllex:01 ocamllex:01 cheers:01 wiki:01 wrote:01 caml-list:01 jambon:01 Martin Jambon wrote: > Exactly. > > The 3.10 manual says: > > 7.2 Streams and stream parsers > > The syntax for streams and stream parsers is no longer part of the > Objective Caml language, but available through a Camlp4 syntax > extension. Ah, thank you. I wasn't expecting that in the current manual, only in the first one or two manual versions after the change. > > 2) Any suggestions on how to handle the camlp4 syntax stuff in an > > ocamllex source file? Obviously, this code could be extracted > > and placed in its own file but I'm open to other suggestions. > > I don't know. Have you tried ocamllex followed by camlp4? I tried it, but ocamllex errored out on the camlp4 code and if I do camlp4 first, it errors out on the ocamllex code. Cheers, Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- "Perl as a language has less a design than a thousand special features flying in close formation." -- From the c2 wiki