Improve assembler error messages #69
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Is your feature request related to a problem? Please describe.
The assembler's error-handling strategy is modeled after https://eyalkalderon.com/blog/nom-error-recovery/ but our use of the "placeholder" denoting that we came across an invalid input is not comprehensive.
For example, this line of input is perfectly valid:
If we add an extra symbol in there like this:
We get a somewhat confusing error:
Describe the solution you'd like
An error message which is more understandable, making use of the existing
LocatedSpan
code to show the invalid/unsupported input.Describe alternatives you've considered
I'm hoping that the overall pattern described in Eyal Kalderon's blog post will be sufficient to give a good user experience.
Additional context
See above for an example output.
The text was updated successfully, but these errors were encountered: