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

Handle Else-If chain #880

Merged
merged 1 commit into from
May 12, 2023
Merged

Handle Else-If chain #880

merged 1 commit into from
May 12, 2023

Conversation

bungcip
Copy link
Contributor

@bungcip bungcip commented Apr 2, 2023

produce else if chain expression instead of nested if expression.
ideally the test case also check the rust text output format but currently script/test_translator.py only handle the correctness of transpiled files

fix #769

Copy link
Contributor

@fw-immunant fw-immunant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@fw-immunant fw-immunant merged commit d467a76 into immunant:master May 12, 2023
@bungcip bungcip deleted the nested_else_if branch May 13, 2023 17:34
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

Successfully merging this pull request may close these issues.

c2rust handles else-if chains poorly
2 participants