-
I'd like to continue with the discussion of #46 in slightly broader context. IIUC, lexy has a concept of "whitespace" that can applied in a post-skip manner, i.e., after the production. I was wondering a few things:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It is designed for specifically skipping whitespace. In particular, it is optimized to skip sequences of ASCII space, etc. It's also the main use case, I think?
I'm not sure whether it would make sense: why do you need to skip different things before and after? Do you have a use case? It's also problematic to implement: Consider
I haven't actually used Spirit, but I think so. It disables all whitespace skipping within the production (unless there is an explicit whitespace directive), but instead skips whtiespace once after. |
Beta Was this translation helpful? Give feedback.
It is designed for specifically skipping whitespace. In particular, it is optimized to skip sequences of ASCII space, etc. It's also the main use case, I think?
I'm not sure whether it would make sense: why do you need to skip different things before and after? Do you have a use case? It's also problematic to implement: Consider
a >> b | c >> d
. Currently, lexy attempts to matcha
or