Skip to content

Allow non-terminal extras - #469

Merged
maxbrunsfeld merged 2 commits into
masterfrom
non-terminal-extras
Oct 22, 2019
Merged

maxbrunsfeld merged 2 commits into
masterfrom
non-terminal-extras

Conversation

@maxbrunsfeld

@maxbrunsfeld maxbrunsfeld commented Oct 21, 2019 •

Copy link
Copy Markdown
Contributor

Closes #161

This PR makes it possible for a grammar's extras to contain non-terminal rules (i.e. rules with children). The only restriction is that the first terminal within a non-terminal extra rule must be not occur elsewhere in the grammar.

This requires a corresponding change to the runtime library, so I'd like to get it in before stabilizing the next ABI, which was introduced behind a feature flag in #334.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow non-terminal extras

1 participant