* camlp4 behavior
@ 2005-06-06 2:50 mulhern
2005-06-06 3:05 ` [Caml-list] " Martin Jambon
0 siblings, 1 reply; 2+ messages in thread
From: mulhern @ 2005-06-06 2:50 UTC (permalink / raw)
To: caml-list
Why does camlp4 fail to parse mLast.mli when invoked in the following way:
camlp4 -I /usr/local/godi/lib/ocaml/std-lib/camlp4 pa_o.cmo
/usr/local/godi/lib/ocaml/std-lib/camlp4/mLast.mli
File "/usr/local/godi/lib/ocaml/std-lib/camlp4/mLast.mli", line 22,
characters 46-47:
Parse error: [interf] expected after [sig_item_semi] (in [interf])
Uncaught exception: Stream.Error("[interf] expected after
[sig_item_semi] (in [interf])")
-mulhern
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] camlp4 behavior
2005-06-06 2:50 camlp4 behavior mulhern
@ 2005-06-06 3:05 ` Martin Jambon
0 siblings, 0 replies; 2+ messages in thread
From: Martin Jambon @ 2005-06-06 3:05 UTC (permalink / raw)
To: mulhern; +Cc: caml-list
On Sun, 5 Jun 2005, mulhern wrote:
> Why does camlp4 fail to parse mLast.mli when invoked in the following way:
>
> camlp4 -I /usr/local/godi/lib/ocaml/std-lib/camlp4 pa_o.cmo
> /usr/local/godi/lib/ocaml/std-lib/camlp4/mLast.mli
> File "/usr/local/godi/lib/ocaml/std-lib/camlp4/mLast.mli", line 22,
> characters 46-47:
> Parse error: [interf] expected after [sig_item_semi] (in [interf])
> Uncaught exception: Stream.Error("[interf] expected after
> [sig_item_semi] (in [interf])")
Because it was written in the revised syntax: you should use pa_r.cmo
instead of pa_o.cmo, or directly camlp4r (man camlp4).
Martin
--
Martin Jambon, PhD
http://martin.jambon.free.fr
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-06-06 3:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-06 2:50 camlp4 behavior mulhern
2005-06-06 3:05 ` [Caml-list] " Martin Jambon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox