-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Token parser consumes newlines #24
Comments
It would be nice indeed |
This would be cool. I'm also interested in hearing @aslatter 's opinion about the improvement. |
@albertnetymk What if someone wants to treat separately other space characters like tab? I have never had the need for this, but I'm wondering if a more general solution can be achieved. |
@doppioandante One simple solution could be creating one more field, like |
@jkarni, @doppioandante Work has been started on this issue in Megaparsec, see branch |
@mrkkrp Cool, I had solved forking parsec and introducing a dirty hack. |
@doppioandante, Thanks! If it doesn't click, please describe your experience, so we can correct our shortcomings. Megaparsec is almost ready for its first release, lexer (token parser is Parsec's terminology) is the only thing that's left. |
As described in this SO question, many of the token parser functions consume newlines, which is often not the desired behaviour. It's also not easy, without copying most of the code, to change that. It'd be nice if this behaviour were configurable!
The text was updated successfully, but these errors were encountered: