示例#1
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);
 }
示例#2
0
文件: LayeInt.cs 项目: LayeLang/Laye
 public IntTypeDef(LayeTypeDef type)
     : base(type)
 {
     type.PutPrefix("#", (LayeCallback)Prefix__DigitCount);
 }