cvs commit: fptools/libraries/base/Text/Read Lex.hs

Simon Peyton Jones simonpj@glass.cse.ogi.edu
Wed, 9 Apr 2003 01:18:14 -0700


simonpj     2003/04/09 01:18:14 PDT

  Modified files:
    libraries/base/Text/Read Lex.hs 
  Log:
  	-------------------------------------
        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.
  
  Revision  Changes    Path
  1.10      +74 -84    fptools/libraries/base/Text/Read/Lex.hs