A clearer error message(s) during compilation procedure #248
stefanos82
started this conversation in
General
Replies: 1 comment 1 reply
-
The first two AST messages gives you more context around what the error happened. I noticed a few times users asking for improved compiler error messages, with more context information and suggestions. For now the current error messages is what we have, I have ideas to improve the parser and analyzer to make the compiler guide users mistakes more, but this will need to wait. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was writing a demo app for testing purposes on an idea I have and forgot to use
local
for a variable and got the following message:About the first two messages that have to do with AST, is it something that the standard user should care about or not?
Also, shouldn't there be a helper output with the undeclared symbol to let user know he or she forgot to add
local
orglobal
?For a moment I was confused until I have realized my mistake.
Any thoughts on this @edubart ?
Beta Was this translation helpful? Give feedback.
All reactions