Browse thread
New Camlp4 behavior (problem with rules starting with OPT)
-
Martin Jambon
- Nicolas Pouillard
- Christian Stork
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Christian Stork <cstork@i...> |
| Subject: | Re: [Caml-list] New Camlp4 behavior (problem with rules starting with OPT) |
On Fri, Apr 13, 2007 at 01:27:24AM -0700, Martin Jambon wrote:
> With camlp4 3.10.0+beta, the following syntax extension does not work,
> but it used to work in the "old" camlp4.
>
...
> item: [
> [ mut = OPT "mutable"; name = LIDENT -> () ]
...
According to http://pauillac.inria.fr/~pouillar/camlp4-changes.html :
In grammars, constructions (LIST0, LIST1, OPT) no longer accept a
single token. LIST0 STRING can be replaced by lIST0 [ x = STRING ->
x ]
So this shouldn't work at all?! Nicolas, does this restriction still
exist?
--
Chris Stork <> Support eff.org! <> http://www.ics.uci.edu/~cstork/
OpenPGP fingerprint: B08B 602C C806 C492 D069 021E 41F3 8C8D 50F9 CA2F