示例#1
0
        public override bool Equals(object o)
        {
            if (o.GetType() != this.GetType())
            {
                return(false);
            }
            DataExp rhs = (DataExp)o;

            return(rhs.except == this.except && rhs.dt == this.dt);
        }
示例#2
0
 public void OnData(DataExp exp)
 {
     writer.Write('\\');
     writer.Write(exp.name);
     if (exp.except != null)
     {
         writer.Write("~(");
         exp.except.Visit(this);
         writer.Write(')');
     }
 }
 public Expression OnData( DataExp exp )
 {
     if( token.Accepts(exp) )	return Expression.Empty;
     else						return Expression.NotAllowed;
 }
 public void OnData( DataExp exp )
 {
     writer.Write('\\');
     writer.Write(exp.name);
     if(exp.except!=null) {
     writer.Write("~(");
     exp.except.Visit(this);
     writer.Write(')');
     }
 }