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

Compiler almost hangs on invalid if statement #83

Open
AndreVanDelft opened this issue Apr 16, 2018 · 0 comments
Open

Compiler almost hangs on invalid if statement #83

AndreVanDelft opened this issue Apr 16, 2018 · 0 comments

Comments

@AndreVanDelft
Copy link
Owner

I had typed accidentally

  g = if (b) bc; {*gp*} / doCancel

whereas it should have been

  g = if b then bc; {*gp*} / doCancel

The parser hang for minutes on this. Finally it reported:

[error] Error: ParseError(Position(3607,86,79), Position(3607,86,...), <24 traces>)
[error]    g = if (b) bc; {*gp*} / doCancel
[error]                 ^
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