Skip to content

Pruduction with custom whitespace is not a branch rule #64

Answered by foonathan
NelsonEloi asked this question in Q&A
Discussion options

You must be logged in to vote

I've recently changed whitespace skipping. As a consequence, productions that define whitespace members can't be branch rules (because they skip whitespace first, which can't be used as a branch condition). However, you only need to add a whitespace member to the root production anyway, it is then inherited by all children: https://godbolt.org/z/E7czTsq3v

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@EmmanuelMess
Comment options

@foonathan
Comment options

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
3 participants
Converted from issue

This discussion was converted from issue #63 on April 11, 2022 17:43.