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 UAA17236; Fri, 2 Nov 2001 20:57:38 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA17993 for caml-list@pauillac.inria.fr; Fri, 2 Nov 2001 20:57:38 +0100 (MET) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA13643 for ; Fri, 2 Nov 2001 16:37:44 +0100 (MET) Received: from oceanus.uk.clara.net (oceanus.uk.clara.net [195.8.69.15]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id fA2FbhX23081 for ; Fri, 2 Nov 2001 16:37:43 +0100 (MET) Received: from claranet by oceanus.uk.clara.net with local (Exim 3.22 #4) id 15zgO7-000NNA-00 for caml-list@inria.fr; Fri, 02 Nov 2001 15:37:43 +0000 To: caml-list@inria.fr Reply-To: george.russell@clara.co.uk Subject: [Caml-list] Pattern match floats X-Remote_Addr: 130.159.248.35 Message-Id: From: George Russell Date: Fri, 02 Nov 2001 15:37:43 +0000 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I am working through the OReilly book and have got as far as working on the little basic interpreter. I Am adding support for float type variables, and am trying to modify the lexer. I would like to be able to match ('0'..'9')*'.'('0'..'9')* i.e. one or more digits, a period, followed bt one or more digits. I can't see how to do this in OCaml patter matching? Any ideas? Thanks George -- ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr