Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change error messages #27

Open
MatthewKosloski opened this issue Oct 4, 2021 · 0 comments
Open

Change error messages #27

MatthewKosloski opened this issue Oct 4, 2021 · 0 comments
Labels
feature New feature or request

Comments

@MatthewKosloski
Copy link
Owner

MatthewKosloski commented Oct 4, 2021

Make error messages more concise. For example, the following error message is not concise:

Encountered one or more syntax errors during parse:


Expected an integer, unary, binary, print, let, or identifier expression but found '+' instead (1:12)

(println (++ 3 4))
               ^

1 Error

Refine the error messages to be more concise by adopting this template (similar to how JavaScript error messages are displayed):

[Syntax|Semantic] Error: Error Template

n [Error|Errors]

Also change the "Expected an integer, unary, binary, print, let, or identifier expression but found '' instead" error message to be less verbose... maybe something like "Unexpected Token". We can also change other error messages if needed so that they're less verbose.

Acceptance Criteria:

  • Error message outputs follow the above template
  • Existing error messages are more concise and less verbose
@MatthewKosloski MatthewKosloski added the feature New feature or request label Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant