Add operators, math, time, string, collection, and HOF builtins to El

This commit is contained in:
Will Anderson
2026-04-29 03:58:16 -05:00
parent a42429012e
commit 8d4d9ed786
15 changed files with 972 additions and 19 deletions
+6
View File
@@ -493,6 +493,10 @@ impl TypeChecker {
Expr::Reason { .. } => Type::String,
Expr::Parallel { .. } => Type::Unknown,
Expr::Trace { .. } => Type::Unknown,
Expr::UnaryBitNot(inner) => {
self.infer_expr(inner);
Type::Int
}
}
}
@@ -549,6 +553,8 @@ impl TypeChecker {
}
Type::Bool
}
BinOp::Mod | BinOp::BitAnd | BinOp::BitOr | BinOp::BitXor
| BinOp::Shl | BinOp::Shr => Type::Int,
}
}