Skip to content

add a public grammar validation API to check for undefined nonterminals#196

Merged
CrockAgile merged 1 commit intomainfrom
grammar-validation
Feb 1, 2026
Merged

add a public grammar validation API to check for undefined nonterminals#196
CrockAgile merged 1 commit intomainfrom
grammar-validation

Conversation

@CrockAgile
Copy link
Copy Markdown
Collaborator

closes #136

Before

no simple way to validate that all nonterminals are defined

After

Grammar::validate which runs same check as when building a parser that all non terminals are defined

@CrockAgile CrockAgile self-assigned this Feb 1, 2026
@CrockAgile CrockAgile requested a review from shnewto February 1, 2026 21:08
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 98.142% (+0.1%) from 98.026%
when pulling a618832 on grammar-validation
into 4319151 on main.

@CrockAgile CrockAgile marked this pull request as ready for review February 1, 2026 21:12
@CrockAgile CrockAgile merged commit b2adee3 into main Feb 1, 2026
9 checks passed
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.

Undefined nonterminal is accepted in bnf parsing

3 participants