KumiScript/interpreter/expression/ListFactory.cs

13 lines
331 B
C#
Raw Normal View History

2024-01-26 05:37:51 +00:00
namespace KumiScript.Interpreter
{
public class ListFactory
{
public static ListExpression MakeList(List<Expression> expressions)
{
if (expressions.Any())
return new ProperListExpression(expressions);
return NilExpression.GetInstance();
}
}
}