Skip to content

Expression Pretty Printing#200

Open
rcosta358 wants to merge 13 commits intomainfrom
fix-parentheses
Open

Expression Pretty Printing#200
rcosta358 wants to merge 13 commits intomainfrom
fix-parentheses

Conversation

@rcosta358
Copy link
Copy Markdown
Collaborator

@rcosta358 rcosta358 commented Mar 31, 2026

This PR adds a formatter for expressions. Parentheses are only added when needed to preserve operator precedence and associativity, so expressions stay unambiguous without adding extra noise. Also simplifies the variable formatter and adds unit tests.

@rcosta358 rcosta358 self-assigned this Mar 31, 2026
@rcosta358 rcosta358 added the enhancement New feature or request label Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant