예제 #1
0
 public bool Check(IValue val)
 {
     return(Check(val.Type) || (val.Type.RawTypeOf == RawTypeOf && Predicate.Operator("()", val).Equals(ValueFactory.make(true))));
 }
예제 #2
0
 public FunctionValue(Func <IValue, IValue> func, IValue parameterType)
 {
     this.innerFunction = func;
     this.parameterType = parameterType;
     this.returnType    = ValueFactory.make(new Type(ValueType.ANY));
 }
예제 #3
0
 public ListType(IEnumerable <IValue> types, String description)
 {
     this.predicate    = ValueFactory.make(makeListTypeChecker(types));
     this.friendlyName = description;
     this.creationList = ValueFactory.make(types);
 }