diff --git a/priv/static/squared_away.mjs b/priv/static/squared_away.mjs index 48bda61..0466c14 100644 --- a/priv/static/squared_away.mjs +++ b/priv/static/squared_away.mjs @@ -5813,7 +5813,7 @@ function interpret(loop$env, loop$expr) { throw makeError( "let_assert", "squared_away/squared_away_lang/interpreter", - 274, + 275, "", "Pattern match failed, no pattern matched the value.", { value: v } @@ -5839,7 +5839,7 @@ function interpret(loop$env, loop$expr) { throw makeError( "let_assert", "squared_away/squared_away_lang/interpreter", - 284, + 286, "", "Pattern match failed, no pattern matched the value.", { value: v } @@ -5860,7 +5860,7 @@ function interpret(loop$env, loop$expr) { throw makeError( "let_assert", "squared_away/squared_away_lang/interpreter", - 294, + 296, "", "Pattern match failed, no pattern matched the value.", { value: v } @@ -8871,6 +8871,8 @@ function view(model) { return ["#FFA500", "#FFF8E1"]; } else if (te instanceof BuiltinSum2) { return ["#FFA500", "#FFF8E1"]; + } else if (te instanceof BuiltinAvg) { + return ["#FFA500", "#FFF8E1"]; } else if (te instanceof Group2) { return ["#FFA500", "#FFF8E1"]; } else if (te instanceof UnaryOp2) { diff --git a/src/squared_away.gleam b/src/squared_away.gleam index 04dc569..a3ccd0d 100644 --- a/src/squared_away.gleam +++ b/src/squared_away.gleam @@ -564,6 +564,7 @@ fn view(model: Model) -> element.Element(Msg) { case te { typed_expr.BinaryOp(_, _, _, _) | typed_expr.BuiltinSum(_, _) + | typed_expr.BuiltinAvg(_, _) | typed_expr.Group(_, _) | typed_expr.UnaryOp(_, _, _) -> #( "#FFA500",