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

If an error occurs on any line, remaining code should not be executed. #14

Open
2 tasks
sohang3112 opened this issue Nov 11, 2023 · 0 comments
Open
2 tasks
Assignees
Labels
bug Something isn't working

Comments

@sohang3112
Copy link
Owner

sohang3112 commented Nov 11, 2023

Jupyter Notebook Screenshot

In this example screenshot, when running this code:

clear .
1 2 + .

GForth raises a Stack Underflow error on first line clear ., but the second line 1 2 + . is still run. This should not happen.

  • if an error occurs on a line, stop execution
  • ensure catch word (which handles errors in Forth) still works
@sohang3112 sohang3112 added the bug Something isn't working label Nov 11, 2023
@sohang3112 sohang3112 self-assigned this Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant