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 (02:27)
From: Martin Jambon <martin.jambon@e...>
Subject: switching to camlp4 3.10

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 pa_foo.ml

What is now the equivalent command, and how are people supposed to find 
this out?

I understand it should be something like:

   camlp4o ... -printer OCaml pa_foo.ml
   camlp4 -parser OCaml ... -printer OCaml pa_foo.ml

Why didn't you change the name of the programs that are not compatible 
with their previous versions (camlp4, camlp4o, ...)?
It would avoid a number confusions and allow the new camlp4 to coexist 
with the old one.



Martin Jambon