Пример #1
0
 public MiniPascalType NodeType(Scope Current)
 {
     factor.NodeType(Current);
     if (!factor.Type.IsArray)
     {
         throw new ArrayRequiredException(Type);
     }
     return(Type);
 }
Пример #2
0
 public MiniPascalType NodeType(Scope Current)
 {
     factor.NodeType(Current);
     if (!Type.HasOperatorDefined(oper))
     {
         throw new UndefinedOperatorException(Type, oper);
     }
     return(Type);
 }