hlorenzi / customasm

💻 An assembler for custom, user-defined instruction sets! https://hlorenzi.github.io/customasm/web/
Apache License 2.0
719 stars 56 forks source link

Improve error message #185

Open flaviojs opened 1 year ago

flaviojs commented 1 year ago

"error: expected }

I got this error and failed to find the problem with a manual inspection of the text. With a bunch of "cut parts of text"-assemble-"paste back" cycles I managed to pinpoint the troublesome lines.

If the error also showed the location of the { that it was trying to match, then I could have fixed the troublesome lines with ease.

hlorenzi commented 12 months ago

That's certainly a good idea! I'll take a look and see if it's any easy to implement in the current architecture.