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 TAA09405; Mon, 10 Dec 2001 19:53:56 +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 TAA09414 for ; Mon, 10 Dec 2001 19:53:55 +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 fBAIrsL09984 for ; Mon, 10 Dec 2001 19:53:54 +0100 (MET) Received: (from ddr@localhost) by verdot.inria.fr (8.9.3/8.9.3) id TAA01055 for caml-list@inria.fr; Mon, 10 Dec 2001 19:53:49 +0100 Date: Mon, 10 Dec 2001 19:53:49 +0100 From: Daniel de Rauglaudre To: caml-list@inria.fr Subject: Re: [Caml-list] ocaml stream question Message-ID: <20011210195349.D810@verdot.inria.fr> References: <3C150271.E4F2128D@sage.att.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C150271.E4F2128D@sage.att.com>; from garry@sage.att.com on Mon, Dec 10, 2001 at 01:44:01PM -0500 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, On Mon, Dec 10, 2001 at 01:44:01PM -0500, Garry Hodgson wrote: > i'm playing with ocaml streams to build a lexer, using ocaml 3.02. > trying the sample code: > let next = function [< 'x >] -> x ;; In OCaml, unlike Caml Light, you must use the keyword "parser": let next = parser [< 'x >] -> x ;; -- Daniel de RAUGLAUDRE daniel.de_rauglaudre@inria.fr http://cristal.inria.fr/~ddr/ ------------------- 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