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

Unexpected EOF #319

Closed
JacobUb opened this issue Dec 18, 2014 · 1 comment
Closed

Unexpected EOF #319

JacobUb opened this issue Dec 18, 2014 · 1 comment

Comments

@JacobUb
Copy link
Contributor

JacobUb commented Dec 18, 2014

a = [0, 1, 2, 3]
if a.size > 1
  a.shift until a[0] != 0
end # => expecting identifier 'end', not 'EOF'

I suppose that the parser thinks that the "end" belongs to the "until" and that the "if" has no "end".
The same code works in Ruby with no issues.

@asterite
Copy link
Member

Thanks!

As always, this will work in the next version, or if you compile a compiler. But right now it's hard to test that because of some issue with paths in the last release.

I tried it with Ruby and a has a different value in the end, but it's because of Ruby's inconsistency when using while or until as a suffix.

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

2 participants