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
Parse assignment operators / 'if' function as expression instead of statement #304
Closed
12 tasks done
Comments
Closed
sys27
added a commit
that referenced
this issue
Sep 29, 2020
sys27
added a commit
that referenced
this issue
Sep 29, 2020
sys27
added a commit
that referenced
this issue
Oct 1, 2020
sys27
added a commit
that referenced
this issue
Oct 1, 2020
sys27
added a commit
that referenced
this issue
Oct 1, 2020
sys27
added a commit
that referenced
this issue
Oct 9, 2020
sys27
added a commit
that referenced
this issue
Jul 5, 2023
sys27
added a commit
that referenced
this issue
Jul 5, 2023
sys27
added a commit
that referenced
this issue
Jul 5, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Affects:
++
--
+=
-=
*=
/=
<<=
>>=
:=
if
def
undef
?Open Question: All expressions with variable assignment will return assigned value, but what about function assignments?
Possible solution: Split parsing of assign operators to two paths, the first one for function and it will remain statement, and the second one for variables.
Possible solution #2: #628
Check precedence #343
It will allow to support the following expressions:
x := 1 + (y := 2)
x := if(y == 0, 1, -1)
The text was updated successfully, but these errors were encountered: