Skip to content

Complex State Transitions in DFA#86

Merged
rcosta358 merged 6 commits into
mainfrom
complex-state-transitions-dfa
May 20, 2026
Merged

Complex State Transitions in DFA#86
rcosta358 merged 6 commits into
mainfrom
complex-state-transitions-dfa

Conversation

@rcosta358
Copy link
Copy Markdown
Collaborator

@rcosta358 rcosta358 commented May 19, 2026

Closes #51.
This PR updates the FSM parser so @StateRefinement expressions preserve the logic around states instead of only extracting state names. It now handles conjunctions, disjunctions, and conditionals in transitions.

It adds the additional preconditions before the method label and postconditions after it, each with a color from the current theme. These are hidden by default and can be expanded by clicking the new button.

Example: Order

After Expansion

image

Before Expansion

image

@rcosta358 rcosta358 self-assigned this May 19, 2026
@rcosta358 rcosta358 added enhancement New feature or request dfa labels May 19, 2026
@rcosta358 rcosta358 requested a review from CatarinaGamboa May 19, 2026 22:55
Copy link
Copy Markdown
Collaborator

@CatarinaGamboa CatarinaGamboa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very cool! we might want to change the pre-cond to some other color if the light yellow is too similar to the white

@rcosta358
Copy link
Copy Markdown
Collaborator Author

Changed it in the new-icons branch.

@rcosta358 rcosta358 merged commit 4b063e9 into main May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dfa enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle Complex State Transitions in DFA

2 participants