Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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 <> 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
> 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

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

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

Nicolas Pouillard