floating point literals

Jon Fairbairn Jon.Fairbairn at cl.cam.ac.uk
Tue Mar 18 12:58:57 EST 2003


On 2003-03-18 at 12:44EST Dean Herington wrote:
> Simon Marlow wrote:
> 
> > > On Mon, Mar 17, 2003 at 10:33:47AM +0000, Ross Paterson wrote:
> > > > GHC doesn't recognize literals like 9e2, and nor does lex.
> > Fixed GHC, I'll leave lex to someone more familiar with the code...
> >
> > Cheers,
> >         Simon
> 
> Forgive me if I'm confused, but I thought "9e2" was supposed to be
> parsed as two lexemes, "9" and "e2".

Was, but is no more.  The syntax changed during the revision
of the standard.

Had me confused for a while too.

 Jón


-- 
Jón Fairbairn                                 Jon.Fairbairn at cl.cam.ac.uk
31 Chalmers Road                                         jf at cl.cam.ac.uk
Cambridge CB1 3SZ            +44 1223 570179 (after 14:00 only, please!)





More information about the Glasgow-haskell-bugs mailing list