Skip to content

Add support for if expressions#440

Open
Bazooper-blip wants to merge 1 commit intointegrated-application-development:masterfrom
Bazooper-blip:master
Open

Add support for if expressions#440
Bazooper-blip wants to merge 1 commit intointegrated-application-development:masterfrom
Bazooper-blip:master

Conversation

@Bazooper-blip
Copy link
Copy Markdown

Resolves #407. Introduces parsing, type resolution, and control-flow modelling of Delphi 13's conditional if operator (e.g. X := if Foo then Bar else Baz). The LUB of the two branch types is used as the expression's type, and the branches are modelled as mutually-exclusive paths in the CFG.

Resolves integrated-application-development#407. Introduces parsing, type resolution, and control-flow
modelling of Delphi 13's conditional `if` operator
(e.g. `X := if Foo then Bar else Baz`). The LUB of the two branch
types is used as the expression's type, and the branches are modelled
as mutually-exclusive paths in the CFG.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

Support if expressions

1 participant