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

Runtime error when re-inserting then-token #18

Open
cdfa opened this issue Jul 20, 2022 · 0 comments
Open

Runtime error when re-inserting then-token #18

cdfa opened this issue Jul 20, 2022 · 0 comments

Comments

@cdfa
Copy link

cdfa commented Jul 20, 2022

A runtime error I encountered while playing around in the june version:

  1. enter a conditional like if x then y else z
  2. remove then, so it becomes if x|y else z
  3. enter a space and move left to make if x| y else z
  4. attempt to enter then
  5. observe runtime error:
Async_kernel: Unhandled exception (Failure "impossible: bin encountered empty or singleton stack")

And maybe this is a separate bug, but if you go
4. enter then (without a leading space) to make if x|then y else z
5. separate x from then with a space to make if x |then y else z
6. observe that the then is not recognized as a keyword and remains in the backpack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant