kach / nearley

📜🔜🌲 Simple, fast, powerful parser toolkit for JavaScript.
https://nearley.js.org
MIT License
3.59k stars 232 forks source link

Suggestion: Linter for nearley grammar files. #386

Open prodrammer opened 6 years ago

prodrammer commented 6 years ago

How great would it be to have a linter for nearley grammar files that could detect formatting inconsistencies and potential anti-patterns?

I think this could potentially make nearley more approachable for grammar writing newbies.

It would also be nice to delegate post-processor linting to a configurable linter with initial support for eslint, for example.

kach commented 6 years ago

We already have some sort of linter, it just doesn't do that much yet. Contributions welcome. :-)