Skip to content

Add grammar linter (fixes #331)#1616

Open
goutham-hari wants to merge 1 commit into
lark-parser:masterfrom
goutham-hari:add-grammar-linter
Open

Add grammar linter (fixes #331)#1616
goutham-hari wants to merge 1 commit into
lark-parser:masterfrom
goutham-hari:add-grammar-linter

Conversation

@goutham-hari

Copy link
Copy Markdown

This PR adds a standalone grammar linter as requested in #331. It checks for:

  • Unused rules
  • Unused terminals
  • Undefined references (handled by Lark's internal validation)

Includes a CLI entry point at \lark/tools/lint.py\ and a test suite under \ ests/test_lint.py.

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.

1 participant