antimony-lang / antimony

The Antimony programming language
https://antimony-lang.github.io/antimony/
Apache License 2.0
138 stars 6 forks source link

Improved error messages #99

Open hexaredecimal opened 6 months ago

hexaredecimal commented 6 months ago

I have improved the error messages emitted from the parser/lexer by providing more context and hints to fix the error. My implementation includes a new file, containing code which allow us to better debug tokens, by type.

garritfra commented 6 months ago

You seem to remove the PR description by default when submitting PRs 😅 I added this to provide a checklist (mostly to myself) of what's to be done before this can be merged.

The code looks good. Do you mind fixing the formatting and adding some tests for the new error messages? I can add the changelog entry myself.

Thanks for this!!