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 E9CEE7EE4B for ; Thu, 17 Oct 2013 19:33:54 +0200 (CEST) X-IronPort-AV: E=Sophos;i="4.93,515,1378850400"; d="scan'208";a="37518572" Received: from yquem.inria.fr ([128.93.8.37]) by mail2-relais-roc.national.inria.fr with ESMTP; 17 Oct 2013 19:33:53 +0200 Received: by yquem.inria.fr (Postfix, from userid 25991) id DE2C6E19AC; Thu, 17 Oct 2013 19:33:54 +0200 (CEST) Date: Thu, 17 Oct 2013 19:33:54 +0200 From: Daniel de Rauglaudre To: caml-list@inria.fr Message-ID: <20131017173354.GA31911@yquem.inria.fr> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: [Caml-list] Camlp5 error when printing expression 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/