Version française
Home     About     Download     Resources     Contact us    
Browse thread
Stream parsing - caml light vs. ocaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Toby Moth <tm1@c...>
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