I want to read from a file in Visual Haskell Studio, token after token, by loading each time the next token in a variable. For example: getNextToken. Thanks!! :)
Asked
Active
Viewed 310 times
2 Answers
0
Well, the right answer is somewhat complicated:
Use a parser combinator library like Parsec that will let you fully define the meaning of the word 'token', which varies from context to context.

Edward Kmett
- 29,632
- 7
- 85
- 107