caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Pietro Abate <Pietro.Abate@pps.jussieu.fr>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Limiting scope of grammar extension
Date: Wed, 4 Feb 2009 14:58:12 +0100	[thread overview]
Message-ID: <20090204135812.GB31366@uranium.pps.jussieu.fr> (raw)
In-Reply-To: <2EB36A07AAE8C44BBB1986425E7A22D0034D5BEF34@atp-mbx1.in.nicta.com.au>

On Wed, Feb 04, 2009 at 02:54:53PM +1100, Paul Steckler wrote:
>   I have a camlp4 grammar extension that I want to apply to some parts
>   of a .ml file, but not others.  Most of the file uses normal OCaml
>   syntax.
> 
>   Is there a way to mark the parts that I want transformed according
>   to the grammar extension, while the other parts are left alone?

A very simple way might be to use simple delimiters like << my_stm >>
and write you extension to expand only statements within these
delimiters. This will effectly leave everything else alone... I think.

:)
p


      reply	other threads:[~2009-02-04 13:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-04  3:54 Paul Steckler
2009-02-04 13:58 ` Pietro Abate [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=20090204135812.GB31366@uranium.pps.jussieu.fr \
    --to=pietro.abate@pps.jussieu.fr \
    --cc=caml-list@yquem.inria.fr \
    /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).