From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id E704C7EE4B for ; Fri, 18 Oct 2013 14:00:30 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of kakadu.hafanana@gmail.com) identity=pra; client-ip=209.85.220.43; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="kakadu.hafanana@gmail.com"; x-sender="kakadu.hafanana@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of kakadu.hafanana@gmail.com designates 209.85.220.43 as permitted sender) identity=mailfrom; client-ip=209.85.220.43; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="kakadu.hafanana@gmail.com"; x-sender="kakadu.hafanana@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-pa0-f43.google.com) identity=helo; client-ip=209.85.220.43; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="kakadu.hafanana@gmail.com"; x-sender="postmaster@mail-pa0-f43.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AowFAOAhYVLRVdwrm2dsb2JhbABaFoMpUqs7kmACAoEbCBYOAQEBAQEGCwsJFCiCJQEBBUABGxILAQMMBgULDQ0hIgERAQUBChIGExIJh1gBAw8MohyMVYMKhBwKGScDCmSJAQEFDI58TgeEKQOJOYV8iFSBL4skg0gYKYRUNw X-IPAS-Result: AowFAOAhYVLRVdwrm2dsb2JhbABaFoMpUqs7kmACAoEbCBYOAQEBAQEGCwsJFCiCJQEBBUABGxILAQMMBgULDQ0hIgERAQUBChIGExIJh1gBAw8MohyMVYMKhBwKGScDCmSJAQEFDI58TgeEKQOJOYV8iFSBL4skg0gYKYRUNw X-IronPort-AV: E=Sophos;i="4.93,522,1378850400"; d="scan'208";a="37647364" Received: from mail-pa0-f43.google.com ([209.85.220.43]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 18 Oct 2013 14:00:28 +0200 Received: by mail-pa0-f43.google.com with SMTP id hz1so3532680pad.30 for ; Fri, 18 Oct 2013 05:00:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=udKI5d+NK4dfhrCXp32LwUTMoG4M+1T8z0eBQsX/z7o=; b=P3e/q25IUNThOrNOr/mRl2me9ClRkEm9/nl42UVPMtZRsBlqWhdd8/DyslwgBFHLMv 5d52R86Ze3KBVnUAjmAMInjeZnmIuYd8N6PBqfSeex/Gqg3AYyQurNOubECUYXXPJiDW PyYXL+EdGdVX6oeNW74AEHZjP/WWpPXdmbVSubd20AaRftK8U/ohO5JaoBCSCgSaN34B SdOi4rdF3d1Q39ZvMJsb+E3c9DuFTWnCRyoInHU9jmqL1IOpMX6o3dcIcJn7l1vjWf+B n7h0CWC4vJqZ75LF7U5ttOIwAkg7YMthaStsasLVdv52aaBBV4slKNV6h4KweDcqmxxU F4tA== MIME-Version: 1.0 X-Received: by 10.68.180.66 with SMTP id dm2mr973892pbc.183.1382097628341; Fri, 18 Oct 2013 05:00:28 -0700 (PDT) Received: by 10.70.50.71 with HTTP; Fri, 18 Oct 2013 05:00:28 -0700 (PDT) In-Reply-To: <20131017173354.GA31911@yquem.inria.fr> References: <20131017173354.GA31911@yquem.inria.fr> Date: Fri, 18 Oct 2013 16:00:28 +0400 Message-ID: From: Kakadu To: Daniel de Rauglaudre Cc: Caml List Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Caml-list] Camlp5 error when printing expression many thanks. On Thu, Oct 17, 2013 at 9:33 PM, Daniel de Rauglaudre wrote: > Hi, > > On Thu, Oct 17, 2013 at 07:00:13PM +0200, Kakadu wrote: > >> I have reached some problems with Camlp5 grammars. I can't apply >> grammar [1] to source file 'let _ = REPR (1)'. It says 'cannot print >> expr; a missing case in camlp5; please report'. > > I guess you used: > camlp5o ./pa_log.cmo test.ml > > If it is the case, this message happens because you specified no > pretty printer in the command line (there is no default pretty > printer). > > In your "pa_log.ml" the expression > Eprinter.apply pr_expr Pprintf.empty_pc e > fails because of that. > > Solution: use > camlp5o ./pa_log.cmo pr_o.cmo test.ml > > -- > Daniel de Rauglaudre > http://pauillac.inria.fr/~ddr/ > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa.inria.fr/sympa/arc/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs