
4 Nov
2008
4 Nov
'08
3:21 p.m.
On Tue, Nov 04, 2008 at 08:34:37PM +0100, Achim Schneider wrote:
Parsec is a thousand times more efficient for such things than regular expressions, and you can just lazily parse all the input into a list of data constructors and happily fold it into your state...
I would recommend you to use parsec too; my experience suggests that parsec often results in much cleaner and readable implementation than obscure regexps. -- pierre