Merge #32

32: Report 1-based indices in Error's Display impl r=lnicola a=CAD97

This matches every (mainstream) text editor's use of the line:column format.

I actually lost some time trying to figure out why it was complaining about an empty line before I realized why 😅

I kept `Location` 0-based and translated just at the point of display, as that was a much less invasive change.

Co-authored-by: Christopher Durham <cad97@cad97.com>
tree: 45eae05a638fac9211d360b239355641d01f0d5a
  1. .github/
  2. src/
  3. ungrammar2json/
  4. .gitignore
  5. bors.toml
  6. Cargo.toml
  7. README.md
  8. rust.ungram
  9. ungrammar.ungram
README.md

ungrammar

A DSL for specifying concrete syntax trees. See this introductory post.

See ./rust.ungram for an example.