English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
camlp4 behavior
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-06-06 (03:05)
From: Martin Jambon <martin_jambon@e...>
Subject: Re: [Caml-list] camlp4 behavior
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 Jambon, PhD