caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Martin Jambon <martin.jambon@ens-lyon.org>
To: Nicolas Pouillard <nicolas.pouillard@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] switching to camlp4 3.10
Date: Tue, 20 Mar 2007 17:29:21 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0703201657040.6041@droopy> (raw)
In-Reply-To: <cd67f63a0703190258y5c998056gd79421b779c15b7a@mail.gmail.com>

On Mon, 19 Mar 2007, Nicolas Pouillard wrote:

> On 3/19/07, Martin Jambon <martin.jambon@ens-lyon.org> wrote:
>> Hello,
>> 
>> I started trying to convert my programs so that they support camlp4 3.10.
>> 
>> 1) Is there a better source of documentation than
>> http://gallium.inria.fr/~pouillar/camlp4-changes.html?
>> 
>> 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
>
> This command is supposed to works in the new version. In fact module
> names have changed but ald ones are emulated. However I recently
> noticed a bug for q_MLast.cmo, it's now fixed in the CVS.

ok, thanks.

> However this incantation should be replaced by:
>
> camlp4of -printer OCaml pa_foo.ml
>
> Note: -loc _loc is useless since _loc is the default value.

Right, until the default changes :-)
It used to be "loc" and one day it suddenly became "_loc".

> Note2: -printer o is a shortcut for -printer OCaml

Cool.

--
Martin Jambon
http://martin.jambon.free.fr


      reply	other threads:[~2007-03-21  0:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-19  2:27 Martin Jambon
2007-03-19  7:06 ` [Caml-list] " Gabriel Kerneis
2007-03-19  7:07   ` Gabriel Kerneis
2007-03-19  9:58 ` Nicolas Pouillard
2007-03-21  0:29   ` Martin Jambon [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=Pine.LNX.4.64.0703201657040.6041@droopy \
    --to=martin.jambon@ens-lyon.org \
    --cc=caml-list@inria.fr \
    --cc=nicolas.pouillard@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;
as well as URLs for NNTP newsgroup(s).