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

Nontermination in presence of empty continuations #9

Open
noughtmare opened this issue Jun 16, 2023 · 0 comments
Open

Nontermination in presence of empty continuations #9

noughtmare opened this issue Jun 16, 2023 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@noughtmare
Copy link
Owner

If we ever push an empty continuation to the stack then we will get into an infinite loop.

That can happen in cases like this:

emptyk :: Parser ()
emptyk = 'emptyk
  ::= emptyk <|> pure ()

It is easy to check whether a parser parses the empty string, but it is a bit of an open question how we can use that information to fix this bug.

@noughtmare noughtmare added the bug Something isn't working label Jun 16, 2023
@noughtmare noughtmare added this to the 0.2 milestone Jun 16, 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