Ejemplo n.º 1
0
            private IPositiveLookaheadAssertion ParsePositiveLookaheadGroup()
            {
                ++index; // swallow the '='
                var item = Parse();

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

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