feat: comprehensive development progress
- Pattern matching implementation extended in match_expr.rs - CLI configuration structured with categorized groups (task recommendation completed) - Python LLVM builder split into function_lower.py (task recommendation completed) - parse_box_declaration massive function refactored (task recommendation completed) - Phase 16 Macro Revolution comprehensive planning and documentation - Archive legacy phase documentation for clean structure - HTTP message box improvements and performance optimizations - MIR builder enhancements and control flow improvements 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@ -15,7 +15,7 @@ impl NyashParser {
|
||||
enum MatchArm {
|
||||
Lit { lits: Vec<LiteralValue>, guard: Option<ASTNode>, body: ASTNode },
|
||||
Type { ty: String, bind: String, guard: Option<ASTNode>, body: ASTNode },
|
||||
Default(ASTNode),
|
||||
Default,
|
||||
}
|
||||
|
||||
let mut arms_any: Vec<MatchArm> = Vec::new();
|
||||
@ -67,7 +67,7 @@ impl NyashParser {
|
||||
self.parse_expression()?
|
||||
};
|
||||
default_expr = Some(expr.clone());
|
||||
arms_any.push(MatchArm::Default(expr));
|
||||
arms_any.push(MatchArm::Default);
|
||||
} else {
|
||||
// arm head
|
||||
// Type pattern? IDENT '(' IDENT ')'
|
||||
@ -187,7 +187,7 @@ impl NyashParser {
|
||||
lit_arms.push((lit, body.clone()));
|
||||
}
|
||||
}
|
||||
MatchArm::Default(_) => { /* handled via else_expr above */ }
|
||||
MatchArm::Default => { /* handled via else_expr above */ }
|
||||
MatchArm::Type { .. } => unreachable!(),
|
||||
}
|
||||
}
|
||||
@ -216,7 +216,7 @@ impl NyashParser {
|
||||
// Process arms in reverse to build nested If
|
||||
for arm in arms_any.into_iter().rev() {
|
||||
match arm {
|
||||
MatchArm::Default(_) => {
|
||||
MatchArm::Default => {
|
||||
// already handled as else_node
|
||||
}
|
||||
MatchArm::Lit { lits, guard, body } => {
|
||||
|
||||
Reference in New Issue
Block a user