caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Limiting scope of grammar extension
@ 2009-02-04  3:54 Paul Steckler
  2009-02-04 13:58 ` [Caml-list] " Pietro Abate
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Steckler @ 2009-02-04  3:54 UTC (permalink / raw)
  To: caml-list

Hi,

  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?

-- Paul
--
Paul Steckler
National ICT Australia
paul DOT steckler AT nicta.com.au


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] Limiting scope of grammar extension
  2009-02-04  3:54 Limiting scope of grammar extension Paul Steckler
@ 2009-02-04 13:58 ` Pietro Abate
  0 siblings, 0 replies; 2+ messages in thread
From: Pietro Abate @ 2009-02-04 13:58 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-04 13:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-04  3:54 Limiting scope of grammar extension Paul Steckler
2009-02-04 13:58 ` [Caml-list] " Pietro Abate

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).