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 generate more than one (compiled) files?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-10-17 (11:15)
From: Conglun Yao <yaoconglun@g...>
Subject: Camlp4 generate more than one (compiled) files?
Dear all,

I'm just wondering is it possible to use camlp4 to generate more than
one compiled files.
Normally, camlp4 preprocesses a file and then pass it directly to
compiler (for *.cmo),  or its pretty-printer (for *.ml or other
'plain' file).

In my case, I want to extend the syntax, and write a file, then
preprocess (camlp4) it to generate two different *.cmo files, each one
could be executed separately.

Is it possible?

Thanks,
Conglun