[Hat] Re: Parsing issue with 1e12

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Fri Sep 29 04:24:37 EDT 2006


"Neil Mitchell" <ndmitchell at gmail.com> writes:

> Both GHC and Hugs parse 1e12 as a number, but Hat and Yhc don't.

I suspect this was an unnoticed change in the Haskell Report spec.
Originally I think the exponent form was allowed only if there was a
decimal point before the 'e'.  I see this is no longer the case.
Yes, this is likely to affect the hpc parser as well.

Regards,
    Malcolm


More information about the Hat mailing list