Version française
Home     About     Download     Resources     Contact us    
Browse thread
let int = ?([' ' '\t'] '-') digits+
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] let int = ?([' ' '\t'] '-') digits+
On Friday 29 June 2007 16:57:26 pzimmer@janestcapital.com wrote:
> Do you really want
>
> x-3*7
>
> to be interpreted as
>
> (x (-3)) * 7

Unless I am mistaken, that would not match this regexp (there is no space 
before the "-") so it would be lexed and parsed conventionally.

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
The OCaml Journal
http://www.ffconsultancy.com/products/ocaml_journal/?e