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 TAA09231; Mon, 10 Dec 2001 19:44:05 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 TAA09249 for ; Mon, 10 Dec 2001 19:44:04 +0100 (MET) Received: from mail-blue.research.att.com (mail-blue.research.att.com [135.207.30.102]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id fBAIi3H16404 for ; Mon, 10 Dec 2001 19:44:03 +0100 (MET) Received: from sprache.sage.att.com (sprache.sage.att.com [135.207.29.235]) by mail-blue.research.att.com (Postfix) with ESMTP id 7BBBA4CE37 for ; Mon, 10 Dec 2001 13:44:01 -0500 (EST) Received: from sage.att.com (kestrel.sage.att.com [135.207.29.159]) by sprache.sage.att.com (980427.SGI.8.8.8/8.8.7) with ESMTP id NAA97706 for ; Mon, 10 Dec 2001 13:44:01 -0500 (EST) Message-ID: <3C150271.E4F2128D@sage.att.com> Date: Mon, 10 Dec 2001 13:44:01 -0500 From: Garry Hodgson Organization: AT&T Labs X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: caml-list@inria.fr Subject: [Caml-list] ocaml stream question Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk i'm playing with ocaml streams to build a lexer, using ocaml 3.02. trying the sample code: let next = function [< 'x >] -> x ;; gets me: Characters 20-22: Syntax error do i need to do something special to enable streams? if i just do: let foo = [<>];; it works ok, giving me: val foo : 'a Stream.t = it appears to be the pattern match it doesn't like. any clues for the clueless? -- Garry Hodgson Let my inspiration flow Senior Hacker in token rhyme suggesting rhythm Software Innovation Services that will not forsake me AT&T Labs 'til my tale is told and done. garry@sage.att.com ------------------- 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