[project @ 2003-04-09 08:18:13 by simonpj]
authorsimonpj <unknown>
Wed, 9 Apr 2003 08:18:13 +0000 (08:18 +0000)
committersimonpj <unknown>
Wed, 9 Apr 2003 08:18:13 +0000 (08:18 +0000)
commit326bbb5bbd48a6682a38c310f35b3f6c28e3a4f8
tree8ce7b847771ba3cbea7027b716f3b805fe3fa04c
parente2682ded62c9c1587b75dc5245b1c6f561cf3ce3
[project @ 2003-04-09 08:18:13 by simonpj]
-------------------------------------
      Fix the lexer so that it does the right thing
for floating point and hexadecimal numbers
-------------------------------------

This fix requires the new (<++) combinator that Koen has
added to the ReadP library.

NB: we lex "0x9fw" as [("0x9f", "w")]; that is, we stop as soon
as we get a legal thing (maximally munching) even if white space
does not follow.  I'm not totally certain this is the right thing,
but it's much better than it was before.
Text/Read/Lex.hs