[Haskell-cafe] Re: Parsec question

Erik de Castro Lopo mle+cl at mega-nerd.com
Tue Dec 23 07:58:30 EST 2008


Benedikt Huber wrote:

> have a look at the module Text.ParserCombinators.Parsec.Combinator.
> Those functions should help you to build up parsers from smaller 
> building blocks.
> 
> Using sepBy1, the above parser can be written as
> 
>      dot = T.dot lexer
>      qualifiedIdentifier = sepBy1 identifier dot

WOW!!!! That is really impressive!

Thanks,
Erik
-- 
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
"One serious obstacle to the adoption of good programming languages is
the notion that everything has to be sacrificed for speed. In computer
languages as in life, speed kills." -- Mike Vanier


More information about the Haskell-Cafe mailing list