Skip to content

Ignore whitespace at beginning of input #46

Answered by jannikw
jannikw asked this question in Q&A
Discussion options

You must be logged in to vote

Ah thank you, now that you say that, I see that the tip

Use whitespace to skip optional whitespace at the beginning of the input.

is placed below dsl::whitespace. So it refers to using dsl::whitespace in the rule, but when I read it, I though of it referring to the whitespace member of the production.

I think the current design of having to place dsl::whitespace in the entry production is ok. All you are saying seems to be in the docs and even in the example for the json parser, I just missed it :D

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by foonathan
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
Converted from issue

This discussion was converted from issue #45 on December 14, 2021 14:56.