Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Improve DevEx on reporting errors inside the compiler. #4

Open
3 tasks
reese opened this issue May 25, 2021 · 0 comments
Open
3 tasks

Improve DevEx on reporting errors inside the compiler. #4

reese opened this issue May 25, 2021 · 0 comments

Comments

@reese
Copy link
Owner

reese commented May 25, 2021

Right now, reporting errors inside the compiler is really difficult, since I haven't taken the time to properly add spans inside of the parser and the file name isn't tracked inside of the type-checking stage.

There are a few things that would help here:

  • Investigate thiserror as a more ergonomic way of reporting Error enums.
  • Track error spans for parser errors and handle error cases inside of the LALRPop file. Alternatively, consider a hand-rolled lexer/parser for more effective error messages if that becomes a huge hassle.
  • Maintain file name state during the whole compilation pipeline to pass to the codespan reporter.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant