Version française
Home     About     Download     Resources     Contact us    
Browse thread
Help for Camlp4: Pcaml.input_file for 3.10?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] Help for Camlp4: Pcaml.input_file for 3.10?
Excerpts from Loup Vaillant's message of Tue May 06 18:10:13 +0200 2008:
> 2008/5/6 Nicolas Pouillard <nicolas.pouillard@gmail.com>:
> > Excerpts from Loup Vaillant's message of Tue May 06 11:57:41 +0200 2008:
> >  >
> >  > I would like to know if there is any equivalent
> >  > of Pcaml.input_file in Ocaml 3.10's Camlp4.
> >  > I tried to search the wiki, but with no luck so far.
> >  > [...]
> >
> >  If I clearly remember this ugly global variable has been removed.
> 
> OK, I got it, thank you for the fast response.
> 
> Now, I can have the name of the preprocessed file with _loc.
> 
> But How can I include a file in another? More generally, do we have a
> substitute for it?

Have  a  look at the Camlp4MacroParser syntax extension it provides an INCLUDE
directive.

-- 
Nicolas Pouillard aka Ertai