Erik de Castro Lopo wrote:
> qualifiedIdentifier :: CharParser st [ String ]
Ahh, figured it out myself:
qualifiedIdentifier :: CharParser st [ String ]
qualifiedIdentifier = do
i <- identifier
r <- dotIdentifier
return (i : r)
where
dotIdentifier = do
char '.'
i <- identifier
r <- dotIdentifier
return (i : r)
<|> return []
Does that look sane to people who know Haskell and Parsec
better than me?
Erik
--
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
The Earth is around 70% water. Fish rule the seas.
Humans are over 90% water. It's only a matter of time.
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe