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
- Add
Expr::Match arm in push_temp_stack
- Generate SSA for pattern matching
- Handle underscore (
_) wildcard patterns
- Support match arms with expressions
Files
crates/transpiler/src/lib.rs
crates/parser/src/match.rs
Labels: bug, transpiler, enhancement
Issue
The parser fully supports match expressions with pattern matching (
crates/parser/src/match.rs), but the transpiler has no implementation forExpr::Match.Current State
Expr::MatchhandlingError
When transpiling match expressions, the code hits:
Required Implementation
Expr::Matcharm inpush_temp_stack_) wildcard patternsFiles
crates/transpiler/src/lib.rscrates/parser/src/match.rsLabels: bug, transpiler, enhancement