Re: Stream parsing - caml light vs. ocaml

From: Toby Moth (tm1@cise.npl.co.uk)
Date: Mon Jun 01 1998 - 12:48:55 MET DST


Date: Mon, 1 Jun 1998 11:48:55 +0100
Message-Id: <199806011048.LAA13463@squall.npl.co.uk>
From: Toby Moth <tm1@cise.npl.co.uk>
To: ndavis@ti.com
Subject: Re: Stream parsing - caml light vs. ocaml

option 1:
let rec spaces = parser
    [< '' '|'\t'|'\n'; rest >] -> spaces rest
  | [< >] -> ()

option 2:
let rec spaces = parser
    [< '' '|'\t'|'\n'; _ = spaces >] -> ()
  | [< >] -> ()

which may be what you were thinking of



This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:14 MET