public override IValue interpret(Context context) { CategoryType type = (CategoryType)check(context); ConstructorExpression ctor = new ConstructorExpression(type, source, null); return(ctor.interpret(context)); }
private IExpression resolveConstructor(Context context) { try { IExpression method = new ConstructorExpression(new CategoryType(name), null, null); method.check(context); return(method); } catch (SyntaxError) { return(null); } }