ParsecTools- Parsec combinators for more complex objects.



Parsing of numbers.



parseFloat :: GenParser Char st DoubleSource

Parse a double value. This is exactly the same code as in Real World Haskell, p. 400.

TODO There are some strange 'floating point numbers' running around in the wild that can not be parsed using this code. (eg.: +.5) or (+0.5)

parseExtFloat :: GenParser Char st DoubleSource

This parser should capture floating point numbers beginning with a +.

parseIntegral :: (Integral a, Read a) => GenParser Char st aSource

Parse an integral value.

parseSignum :: GenParser Char st CharSource

Parse the potential +/- before a number, returning ' ' for a +