-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
feat: add infix to postfix, prefix, and prefix to infix expression converters #2960
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
base: master
Are you sure you want to change the base?
feat: add infix to postfix, prefix, and prefix to infix expression converters #2960
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Open seperate prs or merge all the functions to one class
->Merged all conversion functions ( |
As per your suggestion to either open separate PRs or merge all conversion functions into a single class, I have chosen the latter approach. I have merged all the conversion functions (infix_to_postfix, infix_to_prefix, prefix_to_infix) into a unified expression namespace. The previous class wrapper was removed to simplify the structure and improve clarity. I also added modular helper functions such as is_operator and precedence, along with Doxygen-style documentation for better maintainability and readability. All existing logic remains unchanged, and I have verified that all test cases pass successfully. Please let me know if any further changes are needed. |
This pull request has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Has any of this code been written or edited by ai? |
Description
Added three expression conversion algorithms:
Each file:
strings/
folder per CONTRIBUTING.mdChecklist
test()
function included