Example #1
0
        public Repetition Repeat(Action <HandlerBuilder> pattern)
        {
            if (pattern == null)
            {
                throw new ArgumentNullException("pattern");
            }

            var builder = new HandlerBuilder();

            pattern(builder);
            return(new Repetition(this, builder));
        }
Example #2
0
 public Repetition(HandlerBuilder builder, HandlerBuilder innerBuilder)
 {
     _builder      = builder;
     _innerBuilder = innerBuilder;
 }