From: Kakadu <kakadu.hafanana@gmail.com>
To: Daniel de Rauglaudre <daniel.de_rauglaudre@inria.fr>
Cc: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] Camlp5 error when printing expression
Date: Fri, 18 Oct 2013 16:00:28 +0400 [thread overview]
Message-ID: <CAGmVoG03dZCD6gv2N2UJTYxT=97ivRKtEgUvtT8AX=5AHO_aPQ@mail.gmail.com> (raw)
In-Reply-To: <20131017173354.GA31911@yquem.inria.fr>
many thanks.
On Thu, Oct 17, 2013 at 9:33 PM, Daniel de Rauglaudre
<daniel.de_rauglaudre@inria.fr> 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
prev parent reply other threads:[~2013-10-18 12:00 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
2013-10-18 12:00 ` Kakadu [this message]
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='CAGmVoG03dZCD6gv2N2UJTYxT=97ivRKtEgUvtT8AX=5AHO_aPQ@mail.gmail.com' \
--to=kakadu.hafanana@gmail.com \
--cc=caml-list@inria.fr \
--cc=daniel.de_rauglaudre@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