[Haskell-cafe] Re: Skipping keywords with Parsec

Joel Reymont joelr1 at gmail.com
Wed Apr 11 16:09:48 EDT 2007


Just in case I wasn't clear enough, I'm asking about skipping  
keywords represented by the skip combinator that can be located  
anywhere within the input.

I do know about skipMany and skipMany1, in fact skip is defined in  
terms of these.

On Apr 11, 2007, at 9:04 PM, Joel Reymont wrote:

> Is there a way to have any Parsec combinator skip a certain set of  
> keywords?
>
> I tried lexeme = P.lexeme lexer . (skip >>) but I don't think  
> lexeme is called for every keyword.

--
http://wagerlabs.com/







More information about the Haskell-Cafe mailing list