Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] ocaml stream question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Daniel de Rauglaudre <daniel.de_rauglaudre@i...>
Subject: Re: [Caml-list] ocaml stream question
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