caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Ampersand in camlp4 grammar extension
@ 2009-01-28  9:39 Paul Steckler
  2009-01-28 20:47 ` [Caml-list] " Nicolas Pouillard
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Steckler @ 2009-01-28  9:39 UTC (permalink / raw)
  To: caml-list

I'm writing a camlp4 grammar extension for OCaml that tries to match
ampersands and rewrite expressions containing them.  That wouldn't
be a good idea if my code contained ordinary ampersands used for conjunctions.
But the code doesn't.

I'm struggling how to match the ampersands in my expression rewrite rules.
I've tried "&" and SYMBOL "&", which don't work -- the preprocessed file contains
the original ampersands.  OTOH, I've written rules which use things like "->" and
work fine.

Any help appreciated.

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


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

end of thread, other threads:[~2009-01-29  9:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-28  9:39 Ampersand in camlp4 grammar extension Paul Steckler
2009-01-28 20:47 ` [Caml-list] " Nicolas Pouillard
2009-01-29  4:36   ` Paul Steckler
2009-01-29  9:17     ` nicolas.pouillard

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