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
switching to camlp4 3.10
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-03-19 (09:58)
From: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] switching to camlp4 3.10
On 3/19/07, Martin Jambon <martin.jambon@ens-lyon.org> wrote:
> Hello,
> I started trying to convert my programs so that they support camlp4 3.10.
> 1) Is there a better source of documentation than
> http://gallium.inria.fr/~pouillar/camlp4-changes.html?
> 2) What is the command for preprocessing a simple syntax extension?
> This used to work:
>    camlp4o pa_extend.cmo q_MLast.cmo pr_o.cmo -loc _loc pa_foo.ml

This command is supposed to works in the new version. In fact module
names have changed but ald ones are emulated. However I recently
noticed a bug for q_MLast.cmo, it's now fixed in the CVS.

However this incantation should be replaced by:

camlp4of -printer OCaml pa_foo.ml

Note: -loc _loc is useless since _loc is the default value.
Note2: -printer o is a shortcut for -printer OCaml

Nicolas Pouillard