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.2 required=5.0 tests=AWL,SPF_NEUTRAL 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 96115BC0A for ; Mon, 2 Apr 2007 11:28:08 +0200 (CEST) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.246]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l329S7T8024888 for ; Mon, 2 Apr 2007 11:28:08 +0200 Received: by an-out-0708.google.com with SMTP id d26so1294190and for ; Mon, 02 Apr 2007 02:28:07 -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:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=r5PnfkahSDIV/sfwjo6u9XgyqaRbM+BMOUHI0Q2MilyuW+GIQBFbxDZzAHLIGuwVXP8pfji/v/YrUgiZoQTt4i4JNy3NRGXjkCQaaCsLMpgeyWDBccnffuNQla8nMG3KCqdoG2yjcFo0U7ZoPEudkASBBqlzVkf/AgM9YAPZR0s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=a5pDnr7/HQXnkk2cNRtqpmZKEj3xlFHutH4iJr79v84tM2EK3V6U29wmPTjm5/J4h1QzOx6sRtZwd/gYwb/H6wooPdlZtGzQhx1A44vBAriGU6LWS3Ma/2Bhe2e+fnCpLlm9GRl6SiGAz4FhOuX4aosEkBX6HvbK4oMn8ZBDaOM= Received: by 10.114.133.1 with SMTP id g1mr1755862wad.1175506086757; Mon, 02 Apr 2007 02:28:06 -0700 (PDT) Received: by 10.114.181.18 with HTTP; Mon, 2 Apr 2007 02:28:06 -0700 (PDT) Message-ID: Date: Mon, 2 Apr 2007 11:28:06 +0200 From: "Nicolas Pouillard" To: "Joel Reymont" Subject: Re: [Caml-list] Help with new camlp4 Cc: "Caml List" In-Reply-To: <428B8C56-8ADC-43ED-96D0-34B4341E7045@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5526ED79-3406-4700-9E95-20C631FE40BF@gmail.com> <428B8C56-8ADC-43ED-96D0-34B4341E7045@gmail.com> X-j-chkmail-Score: MSGID : 4610CCA7.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 4610CCA7.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 ocamlc:01 camlp:01 -pp:01 2007,:98 23,:98 3100:98 unbound:01 wrote:01 wrote:01 token:01 token:01 caml-list:01 jambon:01 loc:03 On 4/2/07, Joel Reymont wrote: > > On Apr 2, 2007, at 10:21 AM, Joel Reymont wrote: > > > ocamlc.opt -c -I +camlp4 -pp 'camlp4orf -loc loc' q_octal.ml > > File "q_octal.ml", line 23, characters 10-25: > > Unbound value Token.dummy_loc > > > > on > > > > let loc = Token.dummy_loc ;; > > This is easy, actually. > > open Camlp4.PreCast > > let loc = Loc.ghost That's it. Indeed http://gallium.inria.fr/~pouillar/camlp4-changes.html explain some of these common changes. There is also some things that you can digg in that translation: http://martin.jambon.free.fr/examples/pa_json_static_3100beta.html -- Nicolas Pouillard