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

Improve processing of invalid calculations #7

Closed
sam57719 opened this issue Feb 23, 2022 · 0 comments · Fixed by #9
Closed

Improve processing of invalid calculations #7

sam57719 opened this issue Feb 23, 2022 · 0 comments · Fixed by #9
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@sam57719
Copy link
Owner

  1. For example:
    1//////////////////////////////
    Process all the tokens before erroring.
    This should be changed to realize it's invalid earlier and not process all the tokens.

  2. For example:
    //////////////////////////1
    Actually raises an exception as one of the divide nodes is being processed as NoneType
    This should be fixed in the parser to produce a SyntaxError and stop parsing instead of getting into the interpreter

@sam57719 sam57719 added enhancement New feature or request invalid This doesn't seem right bug Something isn't working and removed enhancement New feature or request labels Feb 23, 2022
@sam57719 sam57719 linked a pull request Mar 9, 2022 that will close this issue
@sam57719 sam57719 closed this as completed Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant