sjbarag / brs

An interpreter for the BrightScript language that runs on non-Roku platforms.
MIT License
113 stars 43 forks source link

Emit unique error codes #165

Open TwitchBronBron opened 5 years ago

TwitchBronBron commented 5 years ago

It would be useful to have a code for each unique lex/parse error emitted by this project. Take a look at this typescript for example, they have a unique code for each error type.

Having a unique code for each type of error helps users search the internet for solutions to those issues.

Not a high priority, but something to consider. I would be willing to do the work on this if it's something you find valuable. I'd probably implement it similar to how I did it here in my brightscript project.

Thoughts?

sjbarag commented 5 years ago

Ooooh that's a great idea. It crossed my mind once but I've completely forgotten about it since.

Feel free to take a crack at it if you get time! :smile: