Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Nicolas Pouillard" <nicolas.pouillard@gmail.com>
To: Loup Vaillant <loup.vaillant@gmail.com>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Help for Camlp4: Pcaml.input_file for 3.10?
Date: Wed, 07 May 2008 18:12:50 +0200	[thread overview]
Message-ID: <1210176715-sup-2245@ausone.local> (raw)
In-Reply-To: <6f9f8f4a0805060910v68c19a5dv76f9abcc879f1fb6@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 808 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

      parent reply	other threads:[~2008-05-07 16:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-06  9:57 Loup Vaillant
2008-05-06 10:31 ` [Caml-list] " Nicolas Pouillard
2008-05-06 16:10   ` Loup Vaillant
2008-05-06 16:34     ` Martin Jambon
2008-05-07 16:12     ` Nicolas Pouillard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1210176715-sup-2245@ausone.local \
    --to=nicolas.pouillard@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=loup.vaillant@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox