diff --git a/schala-lang/src/reduced_ast.rs b/schala-lang/src/reduced_ast.rs index abbc997..f761a01 100644 --- a/schala-lang/src/reduced_ast.rs +++ b/schala-lang/src/reduced_ast.rs @@ -239,11 +239,16 @@ impl Pattern { } }, PatternLiteral::StringPattern(_s) => unimplemented!(), - PatternLiteral::BoolPattern(_b) => unimplemented!(), + PatternLiteral::BoolPattern(b) => { + unimplemented!() + }, PatternLiteral::VarPattern(var) => match symbol_table.lookup_by_name(var) { Some(symbol) => handle_symbol(symbol, &vec![], item), - None => { - unimplemented!() + None => Alternative { + tag: None, + guard: None, + bound_vars: vec![Some(var.clone())], + item } } },