Пример #1
0
            private INegativeLookaheadAssertion ParseNegativeLookaheadGroup()
            {
                ++index; // swallow the '!'
                var item = Parse();

                return(NegativeLookaheadAssertion.Of(item));
            }
        /// <summary>
        /// Creates a group that is not captured.
        /// </summary>
        /// <returns>The non-capture group.</returns>
        public static INegativeLookaheadAssertion From(IEnumerable <IExpression> members)
        {
            if (members == null)
            {
                throw new ArgumentNullException(nameof(members));
            }
            var group = new NegativeLookaheadAssertion();

            foreach (var expression in members)
            {
                group.Add(expression);
            }
            return(group);
        }