Browse thread
[Caml-list] possible camlp4 problem/bug with literal booleans in expr quotations.
-
Maas-Maarten Zeeman
- Daniel de Rauglaudre
[
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: | 2003-01-09 (11:00) |
From: | Daniel de Rauglaudre <daniel.de_rauglaudre@i...> |
Subject: | Re: [Caml-list] possible camlp4 problem/bug with literal booleans in expr quotations. |
Hi, On Thu, Jan 09, 2003 at 12:18:19PM +0100, Maas-Maarten Zeeman wrote: > EXTEND > expr: LEVEL "expr1" > [ [ "forever"; body=expr -> > <:expr< while true do { $body$ } >> ] ]; > END;; Not "true", but "True": in Revised syntax, which is used in quotations of syntax trees, the constructors "True" and "False" must start with an uppercase letter. If you write it with a lowercase letter, the generated syntax tree will represent the *variable* (not the *constructor*) named "true", which does not exist in OCaml. -- Daniel de RAUGLAUDRE http://cristal.inria.fr/~ddr/ ------------------- 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