Пример #1
0
        //*
        // * Checks if some token sequence is present in both this set
        // * and a specified one.
        // *
        // * @param set the look-ahead set to compare with
        // *
        // * @return true if the look-ahead sets intersect, or
        // * false otherwise
        //

        public bool Intersects(LookAheadSet @set)
        {
            for (int i = 0; i <= elements.Count - 1; i++)
            {
                if (@set.Contains((Sequence)elements[i]))
                {
                    return(true);
                }
            }
            return(false);
        }