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

Multi operations #200

Closed
Konstantin8105 opened this issue Jul 7, 2017 · 3 comments
Closed

Multi operations #200

Konstantin8105 opened this issue Jul 7, 2017 · 3 comments

Comments

@Konstantin8105
Copy link
Contributor

Add support of next C code

#include <stdio.h>

int main(void)
{
	int x, y, z;
	x = y = z = 5;
	printf("x = %d\ty = %d\tz = %d\n",x,y,z);
	x += y += z += 5;
	printf("x = %d\ty = %d\tz = %d\n",x,y,z);
	x *= y *= z *= 5;
	printf("x = %d\ty = %d\tz = %d\n",x,y,z);
	return 0;
}

Result:

x = 5	y = 5	z = 5
x = 20	y = 15	z = 10
x = 15000	y = 750	z = 50
@Konstantin8105
Copy link
Contributor Author

Fix #185

@elliotchance
Copy link
Owner

@Konstantin8105 can this issue be closed now that the pull request is merged in?

@Konstantin8105
Copy link
Contributor Author

Konstantin8105 commented Jul 8, 2017

@elliotchance Now, we have only operation Equal.
I will prepare PR for other operations (*= , >>= , .... ).

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