Skip to content

Feat switch case #172

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Feat switch case #172

wants to merge 4 commits into from

Conversation

aspizu
Copy link
Owner

@aspizu aspizu commented Jul 18, 2025

No description provided.

aspizu added 3 commits July 17, 2025 11:49
- Add PartialEq implementations for Expr, Name, and Value types
- Add DuplicateSwitchCasePattern diagnostic for error reporting
- Implement switch-case transformation with optimized code generation:
  - Use linear search for small cases (<25) and non-integer cases
  - Use binary search tree for large integer cases (≥25)
  - Include duplicate case pattern detection and reporting
- Update visitor to integrate switch-case functionality
@aspizu aspizu marked this pull request as draft July 18, 2025 10:45
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