variadic operations work with string/int/float

This commit is contained in:
2020-11-30 17:26:47 -07:00
parent bce6d28d5a
commit f8e2ba9afa
7 changed files with 177 additions and 32 deletions

View File

@@ -119,6 +119,12 @@ class Kiss {
specialForms[specialForm](exp, args, k);
case CallExp(func, args):
ECall(convert(func), [for (argExp in args) convert(argExp)]).withContextPos();
/*
// Typed expressions in the wild become casts:
case TypedExp(type, innerExp):
ECast(convert(innerExp), if (type.length > 0) Helpers.parseComplexType(type, exp) else null).withContextPos();
*/
case ListExp(elements):
ENew({
pack: ["kiss"],