caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Daniel de Rauglaudre <daniel.de_rauglaudre@inria.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Camlp5 error when printing expression
Date: Thu, 17 Oct 2013 19:33:54 +0200	[thread overview]
Message-ID: <20131017173354.GA31911@yquem.inria.fr> (raw)
In-Reply-To: <CAGmVoG1XJ8HL-0QAWvJm2XiXppY6wEjPsRC7mqWe0cRoyPceog@mail.gmail.com>

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/

  reply	other threads:[~2013-10-17 17:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-17 17:00 Kakadu
2013-10-17 17:33 ` Daniel de Rauglaudre [this message]
2013-10-18 12:00   ` Kakadu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131017173354.GA31911@yquem.inria.fr \
    --to=daniel.de_rauglaudre@inria.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).