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
[Caml-list] camlp4 in script
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-11-04 (21:15)
From: Issac Trotts <ijtrotts@u...>
Subject: Re: [Caml-list] camlp4 in script
On Tue, Nov 04, 2003 at 03:25:41PM -0500, Lars Nilsson wrote:
>  > I think no one suggested it because ocamlmktop creates a toplevel 
>  > that doesn't automatically include the +camlp4 directory.  
>  > The -I +camlp4 directive passed to ocamlmktop is only used to
>  > find the .cmo and .cma files while making the new toplevel.
> That could explain some of my problems I had when trying to test it. I
> just put it down as a complete lack of understanding of how to work
> with camlp4 (I haven't felt a deep need for it before, so much of it
> is still a mystery to me). I did get something working, but it was a
> very tiny example, and perhaps it just didn't reference anything in
> manner that would require the #directory statement (I think I just
> used the stream parser functionality in camlp4o).

That's probably it.  My earlier post in this thread shows how to work around
this problem by making a new executable that makes a system call
to the ocaml toplevel with the extra -I arguments.

Issac Trotts

To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners