Engelberg / instaparse

Eclipse Public License 1.0
2.74k stars 149 forks source link

Feature Request: auto-whitespace-on-comma #221

Open st-cheewah opened 1 year ago

st-cheewah commented 1 year ago

:auto-whitespace feature is awesome and I will like to propose we use (abuse?) the , marker in ebnf to optionally apply its logic, i.e. add support for something like the followings:

Engelberg commented 8 months ago

I'm going back through some of the instaparse issues I missed, and came across your feature request. I'd be happy to extend the default auto-whitespace parsers, but I'm not totally clear on how your idea differs from the built-in :auto-whitespace :comma option. Can you provide some example inputs and outputs that show your desired behavior? Thanks for the suggestion.