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

strange usage of switch won't be able to be transpiled to Go #484

Open
QianNangong opened this issue Jun 15, 2020 · 4 comments
Open

strange usage of switch won't be able to be transpiled to Go #484

QianNangong opened this issue Jun 15, 2020 · 4 comments

Comments

@QianNangong
Copy link

for example:

int i;
int x = /** some code */;
switch (x) {
case 0: for (i = 0; i < 3; i++) {
case 1: /** some code */;
case 2: /** some code */;
case 3: /** some code */; }
}
@QianNangong QianNangong changed the title wired usage of switch won't be able to be transpiled to Go strange usage of switch won't be able to be transpiled to Go Jun 15, 2020
@Konstantin8105
Copy link
Owner

Hello,
Now, we can transpile C code only if we can compile C code.
Your code looks not good.
But, in that code strange for in switch. How you expect Go code?

@QianNangong
Copy link
Author

QianNangong commented Jun 16, 2020 via email

@Konstantin8105
Copy link
Owner

Ok, @frozen-tofu
Fell free for create PR and implement the solution.

@jtarchie
Copy link

jtarchie commented Aug 5, 2020

What the heck C?

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

3 participants