예제 #1
0
파일: PrtValues.cs 프로젝트: yzhang90/P-1
        public static IPrtValue PrtCastValue(IPrtValue value, PrtType type)
        {
            //todo: Needs to be fixed for better error message

            /*if (!PrtInhabitsType(value, type))
             *  throw new PrtInhabitsTypeException(
             *      $"value {value.ToString()} is not a member of type {type.ToString()}");*/
            return(value.Clone());
        }
예제 #2
0
 public PrtSetType(PrtType s)
 {
     elemType = s;
 }
예제 #3
0
 public PrtMapType(PrtType k, PrtType v)
 {
     keyType = k;
     valType = v;
 }