* [Caml-list] Camlp5 error when printing expression
@ 2013-10-17 17:00 Kakadu
2013-10-17 17:33 ` Daniel de Rauglaudre
0 siblings, 1 reply; 3+ messages in thread
From: Kakadu @ 2013-10-17 17:00 UTC (permalink / raw)
To: Caml List, daniel.de_rauglaudre
Hi.
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'.
Any ideas about workaround?
Best wishes,
Kakadu
[1] https://github.com/Kakadu/test_camlp5/blob/master/pa_log.ml
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Camlp5 error when printing expression
2013-10-17 17:00 [Caml-list] Camlp5 error when printing expression Kakadu
@ 2013-10-17 17:33 ` Daniel de Rauglaudre
2013-10-18 12:00 ` Kakadu
0 siblings, 1 reply; 3+ messages in thread
From: Daniel de Rauglaudre @ 2013-10-17 17:33 UTC (permalink / raw)
To: caml-list
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Camlp5 error when printing expression
2013-10-17 17:33 ` Daniel de Rauglaudre
@ 2013-10-18 12:00 ` Kakadu
0 siblings, 0 replies; 3+ messages in thread
From: Kakadu @ 2013-10-18 12:00 UTC (permalink / raw)
To: Daniel de Rauglaudre; +Cc: Caml List
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-10-18 12:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-17 17:00 [Caml-list] Camlp5 error when printing expression Kakadu
2013-10-17 17:33 ` Daniel de Rauglaudre
2013-10-18 12:00 ` Kakadu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox