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

Wrong syntax rule #50

Open
sz73 opened this issue Jun 19, 2021 · 0 comments
Open

Wrong syntax rule #50

sz73 opened this issue Jun 19, 2021 · 0 comments

Comments

@sz73
Copy link

sz73 commented Jun 19, 2021

From chapter 1

The equation 3+ =3 is illegal because even though + and = are legal tokens, you can’t have one right after the other.

Actually, the equation is wrong in Julia because of the whitespace, not because of the order of the tokens (besides it is an invalid assignment anyway).

The following commands are both valid

a =+ 3
a += 3

Maybe have another example for syntax like

a = ) 1

All tokens are valid, but the ")" is unexpected

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