Esempio n. 1
0
 internal ObjectTypeDef(LayeTypeDef type)
 {
     type.PutInstanceProperty("hashCode", LayeProperty.FromGet((LayeCallback)IPropertyGet__hashCode));
     type.PutAsCast(LayeBool.TYPE, (LayeCallback)As__Bool);
     type.PutInstanceMethod("toString", (LayeCallback)IMethod__toString);
     type.PutInfix("==", (LayeCallback)Infix__equalTo);
     type.PutInfix("!=", (LayeCallback)Infix__notEqualTo);
     type.PutInfix("<>", (LayeCallback)Infix__Concat);
     type.PutInfix("<;", (LayeCallback)((state, ths, args) => ths));
     type.PutInfix(";>", (LayeCallback)((state, ths, args) => args[0]));
     type.PutInfix(";", (LayeCallback)((state, ths, args) => args[0]));
 }
Esempio n. 2
0
 public StringTypeDef(LayeTypeDef type)
     : base(type)
 {
     type.PutPrefix("#", (LayeCallback)((state, ths, args) => new LayeInt((ths as LayeString).value.Length)));
     type.PutInfix("*", (LayeCallback)Infix__repeat);
 }