Skip to content

Fixed C Code Generator to use actual operator precedence to decide wh…#106

Merged
AjayBrahmakshatriya merged 1 commit intoBuildIt-lang:masterfrom
AjayBrahmakshatriya:master
Nov 3, 2025
Merged

Fixed C Code Generator to use actual operator precedence to decide wh…#106
AjayBrahmakshatriya merged 1 commit intoBuildIt-lang:masterfrom
AjayBrahmakshatriya:master

Conversation

@AjayBrahmakshatriya
Copy link
Collaborator

…ere brackets are required

Previously BuildIt's c code generator added () around expression in an ad-hoc conservative way making the code somewhat unreadable. This change uses the actual precedence of operators to determine when to insert (). Cleans up a bunch of samples.

@AjayBrahmakshatriya AjayBrahmakshatriya merged commit 115fac2 into BuildIt-lang:master Nov 3, 2025
3 checks passed
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.

1 participant