kach / nearley

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

Returning different exit codes from nearley-test #551

Closed jnbbender closed 3 years ago

jnbbender commented 3 years ago

I am writing tools around nearley-test and it would be helpful to know when

  1. the results are successful (0)
  2. when more input is required (currently 0) // This should be something else
  3. when the grammar is ambiguous (currently 0) // This should be something else
  4. bad grammar (1)