
23 Dec
2008
23 Dec
'08
7:58 a.m.
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