Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
A few fixes/additions to translate-c
I can see, that translate_c puts
I was considering making translate_c only sometimes output semicolon, but I didn't actually know if Zig is supposed to accept the use case above (All tests a written with the semicolon, so maybe it's supposed to work?)
I think this is a flaw in ast_render.cpp. When I made those tests, I figured, better to get the translate-c code working, then fix the rendering code later.
The parser is correct that the semicolon is invalid in the above code. They used to be accepted, until d917815.
Thanks for the patch! I'll wait for the tests to complete and then hit the green button.