Browse thread
[Caml-list] Slight parsing difference with/without -pp "camlp4o"
-
Richard Jones
- Nicolas Cannasse
- Michel Mauny
[
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: | Michel Mauny <Michel.Mauny@i...> |
| Subject: | Re: [Caml-list] Slight parsing difference with/without -pp "camlp4o" |
Hum, according to the grammar given at http://caml.inria.fr/ocaml/htmlman/manual008.html, this should be accepted by ocaml. Either the spec is too large, or the ocaml parser is too restrictive (and camlp4o conforms to the spec, here). I'm Cc-ing to the ocaml bug tracking system. Thanks for the report, -- Michel Richard Jones wrote/écrivait (Tue, Jul 20, 2004 at 10:21:14AM +0100): > [This is with OCaml 3.07 - not checked with 3.08] > > --------------------------------------------------------- pptest.ml -- > let f = fun (year, week) as yw -> 1 > ---------------------------------------------------------------------- > > $ ocamlc -c pptest.ml > File "pptest.ml", line 1, characters 25-27: > Syntax error > > But ... > > $ ocamlc -pp "camlp4o" -c pptest.ml > $ > > Rich. ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners