[Haskell-cafe] Tokenizing and Parsec
gue.schmidt at web.de
Mon Jan 11 19:35:10 EST 2010
I've used Parsec to "tokenize" data from a text file. It was actually
quite easy, everything is correctly identified.
So now I have a list/stream of self defined "Tokens" and now I'm stuck.
Because now I need to write my own parsec-token-parsers to parse this
token stream in a context-sensitive way.
Uhm, how do I that then?
a Token is something like:
data Token = ZE String
| OPSShort String
| OPSLong String
| Other String
| ZECd String
More information about the Haskell-Cafe