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,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 DB2A7BC0A for ; Mon, 16 Apr 2007 22:26:48 +0200 (CEST) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l3GKQlZT022587 for ; Mon, 16 Apr 2007 22:26:48 +0200 Received: by py-out-1112.google.com with SMTP id b50so1233902pyh for ; Mon, 16 Apr 2007 13:26:46 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jAoy8lOhhoT+t/2VtofJjeiQZq6bW4HEelTrRmr5uj0CKlkOf1E2Gh/QLpll1R3oUMeSd4nO9MUA66Ga6aMH9CJQjd1XyjCDKT1tDHEwCFFTYCkOX7WDNHbLR9YmElizrFKOcByA+rwZQ0HALhyuv70llf0IuORsZ3sZj9So5lE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OyIl+2x+XAHLHpfiB8Osq7GOusqvALGjH9fnONs7Sa1Sz3gsx3ZWcQrS1Au6nenDNcvb8ZRpGJmk6Ek9FDg5CfTPKuyaidKNrLaIi9HLcgK6uSAd+oDs/rmFBlYpyMnvdv/7+gH2GQ6Anbki+WVjeGxbow8uiajB9Tg/GDvv08Q= Received: by 10.114.157.1 with SMTP id f1mr2065865wae.1176755205825; Mon, 16 Apr 2007 13:26:45 -0700 (PDT) Received: by 10.114.183.4 with HTTP; Mon, 16 Apr 2007 13:26:45 -0700 (PDT) Message-ID: Date: Mon, 16 Apr 2007 22:26:45 +0200 From: "Nicolas Pouillard" To: "Caml List" , "Aleksey Nogin" Subject: Re: [Caml-list] 3.10.0+beta - "Not_found" from a custom camlp4 executable (Delete.delete_rule_in_suffix) In-Reply-To: <4623DA8C.1000702@metaprl.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4623DA8C.1000702@metaprl.org> X-j-chkmail-Score: MSGID : 4623DC07.001 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 4623DC07.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 camlp:01 ocamlc:01 -thread:01 -custom:01 threads:01 lib:01 cmo:01 parsers:01 cmo:01 -linkall:01 uncaught:01 ocamldebug:01 ocamlc:01 -thread:01 On 4/16/07, Aleksey Nogin wrote: > I am trying to figure out how to use the new camlp4 (so that I can have > some hope of migrating our MetaPRL Theorem Prover - http://metaprl.org/ > to it). I thought that I'd start with something simple - port our local > mods to pa_macro (now Camlp4MacroParser). > > First, I tried making sure I know how to build and link the thing. > Compiling an unmodified Camlp4MacroParser was not a problem, but then I > got the following: > > % ocamlc -g -thread -I -custom -o macroprint unix.cma threads.cma > camlp4/camlp4lib.cma camlp4/Camlp4Printers/Camlp4OCamlPrinter.cmo > camlp4/Camlp4Parsers/Camlp4OCamlParser.cmo Camlp4MacroParser.cmo > camlp4/Camlp4Filters/Camlp4TrashRemover.cmo camlp4/Camlp4Bin.cmo -linkall > > % ./macroprint > Camlp4: Uncaught exception: Not_found > > ocamldebug revealed that the Not_found is being raised from the > Delete.delete_rule_in_suffix function. > > What am I doing wrong? That's a DELETE_RULE that cannot find the rule to remove, either it's your DELETE_RULE or it's by loading some camlp4 code that does it. > % ocamlc -g -thread -I -custom -o macroprint unix.cma threads.cma > camlp4/camlp4lib.cma camlp4/Camlp4Printers/Camlp4OCamlPrinter.cmo > camlp4/Camlp4Parsers/Camlp4OCamlParser.cmo Camlp4MacroParser.cmo > camlp4/Camlp4Filters/Camlp4TrashRemover.cmo camlp4/Camlp4Bin.cmo -linkall You should add the revised grammar before the original one since the original is a syntax extension of the revised. Regards, -- Nicolas Pouillard