Skip to content

Whitespace Question #34

Answered by drhagen
mcdenhoed asked this question in Q&A
Discussion options

You must be logged in to vote

The fundamental issue is that whitespace affects only lit and reg within its context. The whitespace regex is not invoked by other operators. I'd like to say this is for performance reasons, but truthfully, I had simply not considered this edge case where parsers from one context were used in another context with no delimiters. I'll have to think about this a bit longer before I decide if the current behavior is philosophically incorrect. But regardless, I agree that it is unexpected.

I would have to see more of your problem before deciding the best solution to your problem. (Thanks for the minimized problem.) Without seeing your real problem, I would suspect that the things in PrimitiveP…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mcdenhoed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants