question about parsing integers and floats with Parsec
Thu, 15 Aug 2002 18:54:56 -0400
This isn't a pure "Haskell" question, but I'm trying to use the
Parsec library to parse out space separated numbers, which could be integers
or floats and either positive or negative. I was using the "naturalOrFloat"
lexeme parser from the ParsecToken module, until I realized that it doesn't
seem to handle negative integers. I've been poking with trying to pair the
integer and float lexeme parsers with try() blocks, but I ain't no parsing
expert and am not making good progress.
Any help/hints would be appreciated!
Andrew Harris firstname.lastname@example.org