grmtools
grmtools copied to clipboard
Error span improvements
In pr #299 which adds spans to various Error types, the Spans returned are based off of the existing offset data from which we can derive a line & column. As it is we currently always return a span where start == end, since it is just getting us to the desired semver ABI.
- SemVer compatible changes (after we add Spans to Errors):
After that PR we could include in the error more information from the
parsefunctions intoYaccParserErrorandLexBuildError. This may require some reorganization of the various privateparsefunctions. - Potential SemVer incompatible changes (after we add Spans to Errors):
YaccErrorKind, andLexErrorKindcould sometimes have useful additional spans, for instanceLexErrorKind::DuplicateNameCould have a span pointing to the first occurrence of the duplicate entry.
- [ ] SemVer compatible improvements
- [x] SemVer incompatible improvements