<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2009/01/ec5abc48403b5e7647c7a58e6fcf15a5"
  from="Paul Steckler &lt;Paul.Steckler@n...&gt;"
  author="Paul Steckler"
  date="2009-01-28T09:39:54"
  subject="Ampersand in camlp4 grammar extension"
  prev="2009/01/629bad2163d83f85195ba2ca7450d001"
  next="2009/01/7bbb57f36284fe4ff07085af2e385261"
  next-in-thread="2009/01/7f5296f864e2680c6b1297453233e3e2"
  prev-thread="2009/01/95edc08cfde6a09340c5e2f438aca25e"
  next-thread="2009/01/7bbb57f36284fe4ff07085af2e385261"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Ampersand in camlp4 grammar extension">
<msg 
  url="2009/01/ec5abc48403b5e7647c7a58e6fcf15a5"
  from="Paul Steckler &lt;Paul.Steckler@n...&gt;"
  author="Paul Steckler"
  date="2009-01-28T09:39:54"
  subject="Ampersand in camlp4 grammar extension">
<msg 
  url="2009/01/7f5296f864e2680c6b1297453233e3e2"
  from="Nicolas Pouillard &lt;nicolas.pouillard@g...&gt;"
  author="Nicolas Pouillard"
  date="2009-01-28T20:52:11"
  subject="Re: [Caml-list] Ampersand in camlp4 grammar extension">
<msg 
  url="2009/01/daa57075110ea549219cf9b8a4510f2e"
  from="Paul Steckler &lt;Paul.Steckler@n...&gt;"
  author="Paul Steckler"
  date="2009-01-29T04:37:57"
  subject="RE: [Caml-list] Ampersand in camlp4 grammar extension">
<msg 
  url="2009/01/df53bfdbdd951319dadbecfe271f6b08"
  from=""
  author=""
  date="2009-01-29T09:18:25"
  subject="RE: [Caml-list] Ampersand in camlp4 grammar extension">
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
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 "&amp;" and SYMBOL "&amp;", which don't work -- the preprocessed file contains
the original ampersands.  OTOH, I've written rules which use things like "-&gt;" and
work fine.

Any help appreciated.

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

</contents>

</message>

