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

Fix bug of generate-unmatched-brackets in CodeGenC::PrintSSAAssign #6887

Merged
merged 3 commits into from
Nov 10, 2020

Conversation

Light-of-Hers
Copy link
Contributor

Fix the bug discussed in #6884 @tqchen

@tqchen
Copy link
Member

tqchen commented Nov 9, 2020

Thanks @Light-of-Hers , can you enhance the code to still remove extra brackets if they match?

The idea would be to add a CheckBracketMatch code that scans the string and use counter to check if the two bracket indeed matches each other (and remove if they do)

@tqchen tqchen added the status: need update need update based on feedbacks label Nov 9, 2020
@Light-of-Hers
Copy link
Contributor Author

Updated @tqchen
Maybe future we can selectively generate surrouding brackets of sub-expressions based the operators' associativity/priority and code-gen context.

@Light-of-Hers
Copy link
Contributor Author

Sorry, some low-level mistakes😂. Is it okay now? @tqchen

@tqchen tqchen merged commit 17607a3 into apache:main Nov 10, 2020
@tqchen
Copy link
Member

tqchen commented Nov 10, 2020

Thanks @Light-of-Hers !

@tqchen tqchen added status: accepted and removed status: need update need update based on feedbacks labels Nov 10, 2020
@Light-of-Hers Light-of-Hers deleted the crz/dev branch September 10, 2021 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants