Could someone give me a small code review

I have attached a tiny parser and lexer. This is really key to getting the lexing correct. The only thing I could not get neatly was to disallow hyphens at the end of identifiers, so have left it off until a good solution arrives. I plan to move over to monads next. Any comments welcome, Aaron

Only the parser was attached.
On Fri, Dec 31, 2010 at 4:26 PM, Aaron Gray
I have attached a tiny parser and lexer. This is really key to getting the lexing correct. The only thing I could not get neatly was to disallow hyphens at the end of identifiers, so have left it off until a good solution arrives. I plan to move over to monads next. Any comments welcome, Aaron
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Edward Amsden Undergraduate Computer Science Rochester Institute of Technology www.edwardamsden.com

On 31 December 2010 21:26, Aaron Gray
I have attached a tiny parser and lexer.
This is really key to getting the lexing correct.
The only thing I could not get neatly was to disallow hyphens at the end of identifiers, so have left it off until a good solution arrives.
I plan to move over to monads next.
Any comments welcome,
Oh forgot parenthesis, brackets and braces, theres a new attachment for them. Then there's comments to do... Aaron
participants (2)
-
Aaron Gray
-
Edward Amsden