Skip to content

[BUG] Match expression transpilation missing #40

Description

@Prestgg1

Issue

The parser fully supports match expressions with pattern matching (crates/parser/src/match.rs), but the transpiler has no implementation for Expr::Match.

Current State

  • Parser: ✅ Complete match parsing
  • Validator: ✅ Match validation exists
  • Transpiler: ❌ Missing Expr::Match handling

Error

When transpiling match expressions, the code hits:

other => {
    todo!("{other:?} there is not complated yet. acutally, i dont know what to do ")
}

Required Implementation

  1. Add Expr::Match arm in push_temp_stack
  2. Generate SSA for pattern matching
  3. Handle underscore (_) wildcard patterns
  4. Support match arms with expressions

Files

  • crates/transpiler/src/lib.rs
  • crates/parser/src/match.rs

Labels: bug, transpiler, enhancement

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions