13 lines
331 B
C#
13 lines
331 B
C#
|
namespace KumiScript.Interpreter
|
||
|
{
|
||
|
public class ListFactory
|
||
|
{
|
||
|
public static ListExpression MakeList(List<Expression> expressions)
|
||
|
{
|
||
|
if (expressions.Any())
|
||
|
return new ProperListExpression(expressions);
|
||
|
|
||
|
return NilExpression.GetInstance();
|
||
|
}
|
||
|
}
|
||
|
}
|