Skip to content

fix(parser): support nested if statements in cheat DSL#58

Merged
Gubarz merged 1 commit into
mainfrom
fix/parser-dsl-if-nesting
May 31, 2026
Merged

fix(parser): support nested if statements in cheat DSL#58
Gubarz merged 1 commit into
mainfrom
fix/parser-dsl-if-nesting

Conversation

@Gubarz

@Gubarz Gubarz commented May 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR fixes a state bug in the DSL parser where closing a nested fi block would completely clear the currentCondition, losing the outer if block's scope. The parser has been updated to use a conditionStack slice, correctly building complex A && B conditions for nested variables.

@Gubarz Gubarz merged commit 85abf6a into main May 31, 2026
1 check passed
@Gubarz Gubarz deleted the fix/parser-dsl-if-nesting branch May 31, 2026 20:30
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