|
RE: floating point literals: msg#00017lang.haskell.glasgow.bugs
Right the Lex library is fixed now, I believe. Thanks to Koen for improving the ReadP combinator library, the code is cleaner too. Simon | -----Original Message----- | From: Simon Marlow [mailto:simonmar@xxxxxxxxxxxxx] | Sent: 19 March 2003 09:17 | To: Dean Herington | Cc: Ross Paterson; glasgow-haskell-bugs@xxxxxxxxxxx | | | > 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. | > > > | > > > Correction: | > > > GHC doesn't recognize 9e2 | > > > lex is confused by 0xy, 0oy, 9e+y and 9.0e+y | > > | > > 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". | | This changed in the revised version of Haskell 98. I hadn't noticed, | hence GHC was still parsing the old H98 syntax. | | The change dates back to November 2001, and is listed on Simon's Errata | page, here: | | http://research.microsoft.com/Users/simonpj/haskell98-revised/haskell98- | bugs.html | | Cheers, | Simon | _______________________________________________ | Glasgow-haskell-bugs mailing list | Glasgow-haskell-bugs@xxxxxxxxxxx | http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: GHCi 5.04.2 segfaults on expression evaluation, Simon Peyton-Jones |
|---|---|
| Next by Date: | Re: `updateWithIndirection' undeclared, Sigbjorn Finne |
| Previous by Thread: | RE: GHCi 5.04.2 segfaults on expression evaluation, Simon Peyton-Jones |
| Next by Thread: | [ ghc-Bugs-718357 ] lexLitChar broken on ghc-5.04.*, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |