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

Defective OBERON export of Alternatives #1146

Closed
codemanyak opened this issue Mar 18, 2024 · 1 comment
Closed

Defective OBERON export of Alternatives #1146

codemanyak opened this issue Mar 18, 2024 · 1 comment
Assignees
Labels
bug enhancement Fixed Implemented (though possibly still not delivered)
Milestone

Comments

@codemanyak
Copy link
Collaborator

codemanyak commented Mar 18, 2024

Structorizer generates wrong code for Alternatives with more than a TRUE branch:
grafik

The END is only to close the entire IF statement and must not be inserted if an ELSE (or ELSIF) follows the THEN branch. Hence, it is wrongy placed in the code.

On this occasion, OBERON export should be made smarter with respect to IF ELSE IF chains, e.g. for the following diagram, an ELSIF should have been used instead of the statement nesting (blue mark):
grafik

@codemanyak codemanyak added the bug label Mar 18, 2024
@codemanyak codemanyak added this to the Release 3.33 milestone Mar 18, 2024
@codemanyak codemanyak self-assigned this Mar 18, 2024
@codemanyak
Copy link
Collaborator Author

Bug was fixed:
grafik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug enhancement Fixed Implemented (though possibly still not delivered)
Projects
None yet
Development

No branches or pull requests

1 participant