[Haskell-cafe] Parsec: Help needed with simple parser

Joel Reymont joelr1 at gmail.com
Mon Apr 9 19:32:07 EDT 2007


I wrote a parser for what should be a simple expression but it's not  
working. Any help is appreciated!

My expression is x + 1 where x can be either "Close", or "Close[N]"  
or "Close[N] of DataM where N and M are positive integers. What  
happens in my case is that 1 + x parses fine but x + 1 doesn't. In  
fact, I would be fine with parsing Close + such that it ignores the  
plus and returns the parse.

	Thanks, Joel


More information about the Haskell-Cafe mailing list