* camlp5: bug?
@ 2008-01-22 23:05 Dmitri Boulytchev
2008-01-22 20:24 ` [Caml-list] " Daniel de Rauglaudre
0 siblings, 1 reply; 2+ messages in thread
From: Dmitri Boulytchev @ 2008-01-22 23:05 UTC (permalink / raw)
To: caml-list
Sorry if this submission is irrelevant to the list, but I failed to
locate
more appropriate place for it.
Given the file t.ml with the single line
() (let module X = Y in ())
camlp5 behaves as shown below:
camlp5o t.ml > /dev/null ---- ok
camlp5o pr_o.cmo t.ml > /dev/null --- Failure: unable
to print expr
Best regards,
Dmitri Boulytchev,
St.Petersburg State University,
St.Petersburg, Russia
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] camlp5: bug?
2008-01-22 23:05 camlp5: bug? Dmitri Boulytchev
@ 2008-01-22 20:24 ` Daniel de Rauglaudre
0 siblings, 0 replies; 2+ messages in thread
From: Daniel de Rauglaudre @ 2008-01-22 20:24 UTC (permalink / raw)
To: caml-list
Hi,
On Tue, Jan 22, 2008 at 11:05:41PM +0000, Dmitri Boulytchev wrote:
> Given the file t.ml with the single line
> () (let module X = Y in ())
> camlp5 behaves as shown below:
> camlp5o pr_o.cmo t.ml > /dev/null --- Failure: unable to print expr
This is indeed something missing in Camlp5. It will be fixed in next
release. In the meantime, you can edit the file "etc/pr_o.ml" and around
line 1100, change:
<:expr< let $flag:_$ $list:_$ in $_$ >> |
<:expr< match $_$ with [ $list:_$ ] >> |
into:
<:expr< let $flag:_$ $list:_$ in $_$ >> |
<:expr< let module $uid:_$ = $_$ in $_$ >> |
<:expr< match $_$ with [ $list:_$ ] >> |
(i.e. insert the line with "let module" between the other two)
--
Daniel de Rauglaudre
http://pauillac.inria.fr/~ddr/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-01-22 20:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-22 23:05 camlp5: bug? Dmitri Boulytchev
2008-01-22 20:24 ` [Caml-list] " Daniel de Rauglaudre
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox