public bool Equals(ParseForestItem p) { return S == p.S && T == p.T && R == p.R && Dir == p.Dir && Comp == p.Comp && Type == p.Type; }