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