From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id MAA23427; Thu, 9 Jan 2003 12:00:39 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA23290 for ; Thu, 9 Jan 2003 12:00:39 +0100 (MET) Received: from verdot.inria.fr (verdot.inria.fr [128.93.11.7]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h09B0cr27073 for ; Thu, 9 Jan 2003 12:00:38 +0100 (MET) Received: (from ddr@localhost) by verdot.inria.fr (8.9.3/8.9.3) id MAA15142 for caml-list@inria.fr; Thu, 9 Jan 2003 12:00:38 +0100 Date: Thu, 9 Jan 2003 12:00:38 +0100 From: Daniel de Rauglaudre To: caml-list@inria.fr Subject: Re: [Caml-list] possible camlp4 problem/bug with literal booleans in expr quotations. Message-ID: <20030109120038.A14144@verdot.inria.fr> References: <3E1D5A7B.6050309@wanadoo.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3E1D5A7B.6050309@wanadoo.nl>; from maas@wanadoo.nl on Thu, Jan 09, 2003 at 12:18:19PM +0100 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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