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 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 650C8BC6B for ; Mon, 8 Oct 2007 14:55:18 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAEfFCUfAXQImh2dsb2JhbACOQwIBCAop X-IronPort-AV: E=Sophos;i="4.21,242,1188770400"; d="scan'208";a="2621599" Received: from discorde.inria.fr ([192.93.2.38]) by mail2-smtp-roc.national.inria.fr with ESMTP; 08 Oct 2007 14:55:18 +0200 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l98CtBBB018295 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Mon, 8 Oct 2007 14:55:18 +0200 X-IronPort-AV: E=Sophos;i="4.21,242,1188770400"; d="scan'208";a="17581530" Received: from peray.inria.fr (HELO ausone.inria.fr) ([128.93.8.98]) by mail4-relais-sop.national.inria.fr with SMTP; 08 Oct 2007 14:55:17 +0200 Received: by ausone.inria.fr (sSMTP sendmail emulation); Mon, _d Oct 2007 14:54:46 +0200 From: "Nicolas Pouillard" Cc: caml-list Subject: Re: [Caml-list] camlp4: Where's Loc? To: n8gray References: In-Reply-To: Date: Mon, 08 Oct 2007 14:54:46 +0200 Message-Id: <1191848007-sup-3223@ausone.inria.fr> User-Agent: Sup/0.1 Content-Type: text/plain; charset=utf-8 X-j-chkmail-Score: MSGID : 470A28AF.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 470A28AF.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 camlp:01 sig:01 ocamlc:01 -pp:01 lib:01 module's:01 sig:01 unbound:01 caml-list:01 cma:01 tuple:02 module:03 module:03 loc:03 Excerpts from n8gray's message of Sun Oct 07 03:40:57 +0200 2007: > I'm trying to figure out how to use the Camlp4MacroParser extension > but I can't seem to find the Loc module it requires: Log is exposed to the user in Camlp4.PreCast, so: open Camlp4.PreCast;; > > macro.ml: > """ > open Camlp4.Sig > let here = __LOCATION__ > """ > > Build command: > ocamlc -I +camlp4 -pp "camlp4o -parser Camlp4MacroParser" > camlp4lib.cma -o macro macro.ml > > Result: > File "macro.ml", line 2, characters 11-23: > Unbound value Loc.of_tuple > > According to the documentation the Loc module's supposed to be in > Camlp4.Sig. Any clues? In sig there is the Loc module type. -- Nicolas Pouillard aka Ertai