//*
        // * Checks if this pattern is recursive on the right-hand side.
        // * This method checks if any of the production pattern
        // * alternatives is right-recursive.
        // *
        // * @return true if at least one alternative is right recursive, or
        // * false otherwise
        //

        public bool IsRightRecursive()
        {
            ProductionPatternAlternative alt = default(ProductionPatternAlternative);

            for (int i = 0; i <= alternatives.Count - 1; i++)
            {
                alt = (ProductionPatternAlternative)alternatives[i];
                if (alt.IsRightRecursive())
                {
                    return(true);
                }
            }
            return(false);
        }