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

A syntax error #23

Closed
erdian718 opened this issue Apr 24, 2019 · 2 comments
Closed

A syntax error #23

erdian718 opened this issue Apr 24, 2019 · 2 comments

Comments

@erdian718
Copy link
Contributor

Run code ({}).test = 123, got an error: Invalid token: Found: . Expected: {, , or ( On Line: 2

@milochristiansen
Copy link
Owner

Ok, that error message can only come from one spot, so that helps a lot. For some reason the parser thinks it is a function call, which is nonsensical of course. I'll trace it back and see where it goes wrong, should be a simple fix (I hope).

@milochristiansen
Copy link
Owner

There was a bit of code that looked for a parenthesized expression and assumed it was the "name" part of a function call. I have no idea why it was there, since the correct code for handling that kind of thing was in the very next check.

Needless to say, I removed it.

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