Skip to content

Reject recursive inline rules - #800

Merged
ydah merged 1 commit into
masterfrom
fix/recursive-inline-rules
Sep 4, 2026
Merged

ydah merged 1 commit into
masterfrom
fix/recursive-inline-rules

Conversation

@ydah

@ydah ydah commented Sep 4, 2026

Copy link
Copy Markdown
Member

Recursive %rule %inline definitions caused Grammar#resolve_inline_rules to expand indefinitely because no cycle detection was performed before expansion.

Validate the inline-rule dependency graph and raise Recursive inline rule: <name> when a direct or mutual cycle is found. Formal parameters are excluded from dependencies so parameters whose names match inline rules are not rejected.

@ydah
ydah merged commit 4ae5876 into master Sep 4, 2026
45 checks passed
@ydah
ydah deleted the fix/recursive-inline-rules branch September 4, 2026 22:05
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